Extracted from D131729 where we handled C==0. It's now generalized
to more constants.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D132000
[RISCV] Fold (sub C, (xor (setcc), 1)) -> (add (setcc), C-1). ClosedPublic Authored by craig.topper on Aug 16 2022, 4:36 PM.
Details
Diff Detail
Event Timelinecraig.topper added a parent revision: D132002: [RISCV] Refactor performSUBCombine to prepare for D132000..Aug 16 2022, 4:39 PM craig.topper added a child revision: D131729: [RISCV] Move xori creation for scalar setccs to lowering..Aug 16 2022, 4:42 PM This revision is now accepted and ready to land.Aug 17 2022, 7:59 AM This revision was landed with ongoing or failed builds.Aug 17 2022, 9:50 AM Closed by commit rG550fab53e1da: [RISCV] Fold (sub C, (xor (setcc), 1)) -> (add (setcc), C-1). (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 453322 llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/double-select-fcmp.ll
llvm/test/CodeGen/RISCV/float-select-fcmp.ll
llvm/test/CodeGen/RISCV/half-select-fcmp.ll
|