Adds two patterns to improve the codegen of GPR value comparisons with small
constants. Instead of first loading the constant into another register and then
doing an XOR of those registers, these patterns directly use the constant as an
XORI immediate.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM, thanks. But would be better titled to reflect that it include GPR != simm12 optimisation. Maybe even better titled as "[RISCV] Improve codegen for icmp {ne,eq} with a constant" or similar (IMHO!)