[llvm] [LoopSink] check conflicting preheader memory access before sink (PR #195510)
Arda Serdar Pektezol via llvm-commits
llvm-commits at lists.llvm.org
Sun May 3 10:55:44 PDT 2026
================
@@ -179,6 +179,25 @@ findBBsToSinkInto(const Loop &L, const SmallPtrSetImpl<BasicBlock *> &UseBBs,
return BBsToSinkInto;
}
+/// Returns true when an \p I from the \p PreheaderBB has conflicting memory
+/// access over the later preheader instructions.
+static bool hasConflictingPreheaderMemoryAccess(Instruction &I, AAResults *AA,
----------------
pektezol wrote:
Used BatchAAResults, is the updated `isModOrRefSet` check okay?
https://github.com/llvm/llvm-project/pull/195510
More information about the llvm-commits
mailing list