From a1902318e33c5e4043f22920fd2da75dedfc9abc Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 14 Apr 2009 01:04:19 +0000 Subject: LoopIndexSplit needs to inform the loop pass manager of the instructions it is deleting, not just the basic block. llvm-svn: 69011 --- llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Transforms') 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); -- cgit v1.2.3