Another place where debug info affected codegen.
llvm-svn: 98026
This commit is contained in:
parent
9e57c676dd
commit
ace75dff75
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue