[llvm] [AArch64][MachineCombiner] Combine sequences of gather patterns (PR #152979)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 17 13:42:33 PDT 2025
================
@@ -7412,11 +7419,335 @@ static bool getMiscPatterns(MachineInstr &Root,
return false;
}
+/// Check if a given MachineInstr `MIa` may alias with any of the instructions
+/// in `MemInstrs`.
+static bool mayAlias(const MachineInstr &MIa,
+ SmallVectorImpl<const MachineInstr *> &MemInstrs,
+ AliasAnalysis *AA) {
+ for (const MachineInstr *MIb : MemInstrs) {
+ if (MIa.mayAlias(AA, *MIb, /*UseTBAA*/ false)) {
+ MIb->dump();
----------------
davemgreen wrote:
Remove dump
https://github.com/llvm/llvm-project/pull/152979
More information about the llvm-commits
mailing list