llvm-project
d3250992 - [RISCV] Rewrite an isel pattern to make it more amenable to GISel. NFC

Commit
320 days ago
[RISCV] Rewrite an isel pattern to make it more amenable to GISel. NFC The result pattern created an i1 constant and then used ImmSubFromXLen SDNodeXForm on it. GISel cannot handle this construct the same way as SelectionDAG. The GISel equivalent of the SDNodeXForm expects a G_CONSTANT, but the emitter can't create that. Work aound this by splitting the pattern into RV32 and RV64 versions and hard coding the constant. Additional changes are needed to import the pattern for GISel so there's no test.
Author
Committer
Parents
Loading