llvm-project
[DAGCombiner] Fold subtraction if above threshold to `umin`
#134235
Merged

[DAGCombiner] Fold subtraction if above threshold to `umin` #134235

pfusik merged 5 commits into llvm:main from pfusik:sub-minu
pfusik
llvmbot llvmbot added backend:RISC-V
llvmbot
pfusik
pfusik commented on 2025-04-03
pfusik
topperc
topperc commented on 2025-04-03
pfusik pfusik marked this pull request as draft 1 year ago
pfusik pfusik changed the title [RISCV] Fold subtraction if above threshold to Zbb `minu` [DAGCombiner] Fold subtraction if above threshold to `umin` 1 year ago
mshockwave
mshockwave commented on 2025-04-07
pfusik pfusik force pushed to 63201050 1 year ago
pfusik
pfusik pfusik marked this pull request as ready for review 1 year ago
llvmbot llvmbot added llvm:SelectionDAG
lukel97
lukel97 approved these changes on 2025-04-08
mshockwave
mshockwave approved these changes on 2025-04-08
pfusik [RISCV] Fold subtraction if above threshold to Zbb `minu`
d67978a2
pfusik [RISCV] Prevent transform on >XLEN types
75b5292d
pfusik [DAGCombiner] Move the transform from RISCVISelLowering
130bbb6b
pfusik pfusik force pushed to 130bbb6b 1 year ago
pfusik
topperc
topperc approved these changes on 2025-04-09
pfusik [RISCV][test] Add `uge` test for subtraction if above threshold
d797364c
pfusik [RISCV] Handle a variant with inverse comparison
0a1c55bf
topperc
topperc approved these changes on 2025-04-10
pfusik pfusik merged 807cc379 into main 1 year ago
llvm-ci
llvm-ci

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone