aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-03-09 01:08:11 +0000
committerDale Johannesen <dalej@apple.com>2010-03-09 01:08:11 +0000
commitace75dff7557560bb2c0890a80f85f249dc32da7 (patch)
tree6025d651137d91298c1e072a56e0cde41f011496 /llvm/lib/Analysis/ScalarEvolutionExpander.cpp
parent9e57c676dd7a9079f630b56959348773ca6ab8a2 (diff)
downloadllvm-ace75dff7557560bb2c0890a80f85f249dc32da7.zip
llvm-ace75dff7557560bb2c0890a80f85f249dc32da7.tar.gz
llvm-ace75dff7557560bb2c0890a80f85f249dc32da7.tar.bz2
Another place where debug info affected codegen.
llvm-svn: 98026
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionExpander.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolutionExpander.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
index e27da96..3c2cbfb 100644
--- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
@@ -1286,6 +1286,8 @@ Value *SCEVExpander::expand(const SCEV *S) {
// there) so that it is guaranteed to dominate any user inside the loop.
if (L && S->hasComputableLoopEvolution(L) && L != PostIncLoop)
InsertPt = L->getHeader()->getFirstNonPHI();
+ while (isa<DbgInfoIntrinsic>(InsertPt))
+ InsertPt = llvm::next(BasicBlock::iterator(InsertPt));
while (isInsertedInstruction(InsertPt))
InsertPt = llvm::next(BasicBlock::iterator(InsertPt));
break;