In this patch, we add a more narrower exclusion for
zeroext (srl x) -> srli (slli x), so that it provides an opportunity for the selection of sraiw.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D120467
[RISCV] Optimize (sext.w, srli) to sraiw with Zba. ClosedPublic Authored by Chenbing.Zheng on Feb 24 2022, 3:15 AM.
Details Summary In this patch, we add a more narrower exclusion for
Diff Detail
Event TimelineHerald added subscribers: VincentWu, luke957, achieveartificialintelligence and 25 others. · View Herald TranscriptFeb 24 2022, 3:15 AM Herald added subscribers: llvm-commits, • pcwang-thead, eopXD and 2 others. · View Herald TranscriptFeb 24 2022, 3:15 AM
Chenbing.Zheng added inline comments.
Chenbing.Zheng added inline comments.
This revision is now accepted and ready to land.Feb 26 2022, 10:59 PM This revision was landed with ongoing or failed builds.Feb 27 2022, 6:35 PM Closed by commit rG7f811ce12744: [RISCV] Optimize (sext.w, srli) to sraiw with Zba. (authored by Chenbing.Zheng). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 411720 llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
llvm/test/CodeGen/RISCV/rv64i-exhaustive-w-insts.ll
|
Don't you also need to check that C3 is 32?