diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2025-07-15 15:34:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-15 15:34:10 +0100 |
commit | 57a5f9c47e063701ac7d13a5efd993e839e148eb (patch) | |
tree | e0b6bac122d092b31be4f204c5998a8add1accc3 /llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | |
parent | 8db92a7d99f2b1a64d34c2fe3c295e555caa35f2 (diff) | |
download | llvm-57a5f9c47e063701ac7d13a5efd993e839e148eb.zip llvm-57a5f9c47e063701ac7d13a5efd993e839e148eb.tar.gz llvm-57a5f9c47e063701ac7d13a5efd993e839e148eb.tar.bz2 |
[DebugInfo][RemoveDIs] Suppress getNextNonDebugInfoInstruction (#144383)
There are no longer debug-info instructions, thus we don't need this
skipping. Horray!
Diffstat (limited to 'llvm/lib/Analysis/MemoryDependenceAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index d6f490c..3aa9909 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -353,7 +353,7 @@ static bool canSkipClobberingStore(const StoreInst *SI, if (BatchAA.alias(MemoryLocation::get(LI), MemLoc) != AliasResult::MustAlias) return false; unsigned NumVisitedInsts = 0; - for (const Instruction *I = LI; I != SI; I = I->getNextNonDebugInstruction()) + for (const Instruction *I = LI; I != SI; I = I->getNextNode()) if (++NumVisitedInsts > ScanLimit || isModSet(BatchAA.getModRefInfo(I, MemLoc))) return false; |