[llvm] [AArch64] Allow LDR merge with same destination register by renaming (PR #71908)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 18 02:27:24 PST 2023
================
@@ -815,12 +815,11 @@ AArch64LoadStoreOpt::mergeNarrowZeroStores(MachineBasicBlock::iterator I,
return NextI;
}
-// Apply Fn to all instructions between MI and the beginning of the block, until
-// a def for DefReg is reached. Returns true, iff Fn returns true for all
-// visited instructions. Stop after visiting Limit iterations.
-static bool forAllMIsUntilDef(MachineInstr &MI, MCPhysReg DefReg,
- const TargetRegisterInfo *TRI, unsigned Limit,
- std::function<bool(MachineInstr &, bool)> &Fn) {
+static bool forAllMIsUntil(MachineInstr &MI,
+ std::function<bool(MachineInstr &MI, bool)> Until,
----------------
davemgreen wrote:
Is the intent that this now uses Until?
https://github.com/llvm/llvm-project/pull/71908
More information about the llvm-commits
mailing list