aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2025-07-15 15:34:10 +0100
committerGitHub <noreply@github.com>2025-07-15 15:34:10 +0100
commit57a5f9c47e063701ac7d13a5efd993e839e148eb (patch)
treee0b6bac122d092b31be4f204c5998a8add1accc3 /llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
parent8db92a7d99f2b1a64d34c2fe3c295e555caa35f2 (diff)
downloadllvm-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/Transforms/Utils/ScalarEvolutionExpander.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp b/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
index 24fe08d..739ac00 100644
--- a/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
+++ b/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
@@ -1682,7 +1682,7 @@ void SCEVExpander::replaceCongruentIVInc(
if (PHINode *PN = dyn_cast<PHINode>(OrigInc))
IP = PN->getParent()->getFirstInsertionPt();
else
- IP = OrigInc->getNextNonDebugInstruction()->getIterator();
+ IP = OrigInc->getNextNode()->getIterator();
IRBuilder<> Builder(IP->getParent(), IP);
Builder.SetCurrentDebugLocation(IsomorphicInc->getDebugLoc());