For targets where i32 is not a legal type (e.g. 64-bit RISC-V), LegalizeIntegerTypes must promote the operand.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | ||
---|---|---|
1327 ↗ | (On Diff #169673) | Not that it actually affects the generated code, but it would probably be more clear to use ZExtPromotedInteger. |
Comment Actions
Updated to apply cleanly without fuzz and to use ZExtPromotedInteger as suggested by Eli.
The test is dependent on RV64I codegen being committed, so blocked on that landing.