llvm-project
bbc87efc - [RISCV] Keep selects with cheap branchless lowering (#246339)

Commit
19 hours ago
[RISCV] Keep selects with cheap branchless lowering (#246339) Do not let SelectOptimize convert integer selects that SelectionDAG lowers to native min/max, sub+minu, or a single czero. This covers narrow integers and pointers that fit one GPR. Selects with branch weights or shared conditions still use the existing profitability heuristics. Fixes #246338 Assisted-by: TRAE CLI (GPT-6.2-Sol)
Author
Parents
Loading