llvm-project
3fe59a78 - [RISCV][GISel] Add GlobalISel equivalent of the SplatPat_simm5 complex pattern (#248144)

Commit
21 hours ago
[RISCV][GISel] Add GlobalISel equivalent of the SplatPat_simm5 complex pattern (#248144) Add a GIComplexPatternEquiv for SplatPat_simm5 and implement selectVSplatSimm5 in the GlobalISel instruction selector, mirroring RISCVDAGToDAGISel::selectVSplatSimm5. The importer can now use the patterns that need it, so vector operations with a constant splat operand that fits in a 5-bit signed immediate select to the .vi forms, for example vadd.vi instead of vmv.v.i + vadd.vv. Part of #246831
Author
Parents
Loading