mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +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:
parent
ec65a7d89b
commit
0b2a153968
@ -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…
x
Reference in New Issue
Block a user