| Issue |
239560
|
| Summary |
[GlobalISel] SimplifyDemandedBits has no target hook for target instructions and intrinsics
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
alexioslyrakis-amd
|
GlobalISel `SimplifyDemandedBits` (#198808) gives up on instructions other than `G_AND`, `G_OR` and constant shifts. SelectionDAG has `SimplifyDemandedBitsForTargetNode` for this, but GlobalISel has no equivalent hook, so targets cannot describe which bits their own instructions and intrinsics read from their operands. They need separate combine rules instead.
AMDGPU examples:
- Packed FP8/BF8 conversions only read one half of their tied destination input (`vdst_in`). #231556 handles this in SelectionDAG only.
- `matchCvtF32UByteN` in `AMDGPUPostLegalizerCombiner.cpp` (`TODO: Simplify demanded bits`).
- The `cvt_scalef32` scale operand (#238388).
Related: #233470 and #238388 also extend GlobalISel demanded bits.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs