llvm-project
2319a1eb - [RISCV] Select (add x, C) -> (sub x, -C) if -C cheaper to materialize (#137309)

Commit
234 days ago
[RISCV] Select (add x, C) -> (sub x, -C) if -C cheaper to materialize (#137309) RV64 only. For 32-bit constants, a negated constant is never cheaper. This change is similar to how #120221 selects inverted bitwise instructions.
Author
Parents
Loading