Another place where debug info affected codegen.

llvm-svn: 98026
This commit is contained in:
Dale Johannesen 2010-03-09 01:08:11 +00:00
parent 9e57c676dd
commit ace75dff75
1 changed files with 2 additions and 0 deletions

View File

@ -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;