forked from OSchip/llvm-project
LoopIndexSplit needs to inform the loop pass manager of the instructions it is
deleting, not just the basic block. llvm-svn: 69011
This commit is contained in:
parent
ca5ae66122
commit
a1902318e3
|
|
@ -695,6 +695,7 @@ void LoopIndexSplit::removeBlocks(BasicBlock *DeadBB, Loop *LP,
|
|||
Instruction *I = BBI;
|
||||
++BBI;
|
||||
I->replaceAllUsesWith(UndefValue::get(I->getType()));
|
||||
LPM->deleteSimpleAnalysisValue(I, LP);
|
||||
I->eraseFromParent();
|
||||
}
|
||||
DT->eraseNode(BB);
|
||||
|
|
|
|||
Loading…
Reference in New Issue