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:
Owen Anderson 2009-04-14 01:04:19 +00:00
parent ca5ae66122
commit a1902318e3
1 changed files with 1 additions and 0 deletions

View File

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