diff options
author | Dale Johannesen <dalej@apple.com> | 2010-03-09 01:08:11 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-03-09 01:08:11 +0000 |
commit | ac291e25c71325ce8706eae08f10abb599933cfd (patch) | |
tree | 827c7ca0bdccc1db94b1c471a4ff094003552497 /lib/Analysis/ScalarEvolutionExpander.cpp | |
parent | 11c1f42f66fc4b9dd714c1125c11c4bbf3e22f30 (diff) | |
download | external_llvm-ac291e25c71325ce8706eae08f10abb599933cfd.tar.gz external_llvm-ac291e25c71325ce8706eae08f10abb599933cfd.tar.bz2 external_llvm-ac291e25c71325ce8706eae08f10abb599933cfd.zip |
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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp index e27da96692..3c2cbfbe78 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; |