This patch adds a pass to generate cm.mvsa01 & cm.mva01s.
RISCVMoveOptimizer.cpp which combines two mv inst into one cm.mva01s or cm.mva01s.
Paths
| Differential D150415
[RISCV] Add a pass to merge moving parameter registers instructions for Zcmp ClosedPublic Authored by VincentWu on May 11 2023, 6:59 PM.
Details Summary This patch adds a pass to generate cm.mvsa01 & cm.mva01s. RISCVMoveOptimizer.cpp which combines two mv inst into one cm.mva01s or cm.mva01s.
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Jun 17 2023, 6:59 PM This revision was landed with ongoing or failed builds.Jun 21 2023, 12:42 AM Closed by commit rGc9e08fa60666: [RISCV] Add a pass to merge moving parameter registers instructions for Zcmp (authored by VincentWu). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 533162 llvm/lib/Target/RISCV/CMakeLists.txt
llvm/lib/Target/RISCV/RISCV.h
llvm/lib/Target/RISCV/RISCVMoveMerger.cpp
llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
llvm/test/CodeGen/RISCV/O3-pipeline.ll
llvm/test/CodeGen/RISCV/cm_mvas_mvsa.ll
|
Should we disable for -O0?