There's an existing generic combine that does this for legal types.
This patch adds a RISCV specific combine for W instructions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D123983
[RISCV] Fold (xor (sllw 1, x), -1) -> (rolw ~1, x). ClosedPublic Authored by craig.topper on Apr 18 2022, 10:41 PM.
Details Summary There's an existing generic combine that does this for legal types.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 19 2022, 9:19 AM This revision was landed with ongoing or failed builds.Apr 19 2022, 3:05 PM Closed by commit rG6db0afb44e13: [RISCV] Fold (xor (sllw 1, x), -1) -> (rolw ~1, x). (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 423745 llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rv32zbb-zbp-zbkb.ll
llvm/test/CodeGen/RISCV/rv64zbb-zbp-zbkb.ll
llvm/test/CodeGen/RISCV/sextw-removal.ll
|