[llvm-branch-commits] [RISCV] Port MoveMergePass to NewPM (PR #235504)
Kazu Hirata via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Oct 25 16:54:12 PDT 2026
================
@@ -500,11 +516,30 @@ bool RISCVMoveMerge::runOnMachineFunction(MachineFunction &Fn) {
ModifiedRegUnits.init(*TRI);
UsedRegUnits.init(*TRI);
bool Modified = false;
- for (auto &MBB : Fn)
+ for (auto &MBB : MF)
Modified |= mergeMovePairs(MBB);
return Modified;
}
/// createRISCVMoveMergePass - returns an instance of the
----------------
kazutakahirata wrote:
May I suggest dropping the stale `createRISCVMoveMergePass` prefix here?
```suggestion
/// Returns an instance of the move merge pass.
```
https://github.com/llvm/llvm-project/pull/235504
More information about the llvm-branch-commits
mailing list