aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit768069ee7a11756b9ba658a4395faa802fc71548 (patch)
tree827c7ca0bdccc1db94b1c471a4ff094003552497 /lib/Analysis/ScalarEvolutionExpander.cpp
parentb2cc1a39f79742320ee6ba126d9eec4d6770dee7 (diff)
downloadexternal_llvm-768069ee7a11756b9ba658a4395faa802fc71548.zip
external_llvm-768069ee7a11756b9ba658a4395faa802fc71548.tar.gz
external_llvm-768069ee7a11756b9ba658a4395faa802fc71548.tar.bz2
Another place where debug info affected codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolutionExpander.cpp')
-rw-r--r--lib/Analysis/ScalarEvolutionExpander.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp
index e27da96..3c2cbfb 100644
--- a/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/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;