llvm-project
2319a1eb
- [RISCV] Select (add x, C) -> (sub x, -C) if -C cheaper to materialize (#137309)
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Commit
View On
GitHub
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.
References
#137309 - [RISCV] Select (add x, C) -> (sub x, -C) if -C cheaper to materialize
Author
pfusik
Parents
af329725
Loading