summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-04-14 01:04:19 +0000
committerOwen Anderson <resistor@mac.com>2009-04-14 01:04:19 +0000
commita1902318e33c5e4043f22920fd2da75dedfc9abc (patch)
tree27309fe54dcbdcb8e5692bf07a9d66be5c590d38
parentca5ae66122218e61a67a37d93531c2e8fd73b132 (diff)
downloadbcm5719-llvm-a1902318e33c5e4043f22920fd2da75dedfc9abc.tar.gz
bcm5719-llvm-a1902318e33c5e4043f22920fd2da75dedfc9abc.zip
LoopIndexSplit needs to inform the loop pass manager of the instructions it is
deleting, not just the basic block. llvm-svn: 69011
-rw-r--r--llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp b/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp
index a8cfaaf3b84..9f5f2cfd39d 100644
--- a/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp
@@ -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);
OpenPOWER on IntegriCloud