mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
LoopIndexSplit needs to inform the loop pass manager of the instructions it is
deleting, not just the basic block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69011 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -695,6 +695,7 @@ void LoopIndexSplit::removeBlocks(BasicBlock *DeadBB, Loop *LP,
|
|||||||
Instruction *I = BBI;
|
Instruction *I = BBI;
|
||||||
++BBI;
|
++BBI;
|
||||||
I->replaceAllUsesWith(UndefValue::get(I->getType()));
|
I->replaceAllUsesWith(UndefValue::get(I->getType()));
|
||||||
|
LPM->deleteSimpleAnalysisValue(I, LP);
|
||||||
I->eraseFromParent();
|
I->eraseFromParent();
|
||||||
}
|
}
|
||||||
DT->eraseNode(BB);
|
DT->eraseNode(BB);
|
||||||
|
Reference in New Issue
Block a user