llvm-project
4ccc07bc - [RISCV] Use SLLI+ADD for a select of constants that differ by a power of 2 in more cases. (#217812)

Commit
15 days ago
[RISCV] Use SLLI+ADD for a select of constants that differ by a power of 2 in more cases. (#217812) Previously we restricted to cases that can use ADDI, but we need to materialize a constant for the czero+add lowering. Using slli avoids materializing the delta constant. I'm restricting to cases where we can't fold the comparison into the czero.
Author
Parents
Loading