The former pattern will select as slliw+sraiw while the latter
will select as slli+srai. This can enable the slli+srai to be
compressed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D129688
[RISCV] Fold (sra (sext_inreg (shl X, C1), i32), C2) -> (sra (shl X, C1+32), C2+32). ClosedPublic Authored by craig.topper on Jul 13 2022, 12:54 PM.
Details Summary The former pattern will select as slliw+sraiw while the latter
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 13 2022, 1:55 PM This revision was landed with ongoing or failed builds.Jul 13 2022, 2:34 PM Closed by commit rG257755530a82: [RISCV] Fold (sra (sext_inreg (shl X, C1), i32), C2) -> (sra (shl X, C1+32)… (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 444421 llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rv64i-shift-sext.ll
|