From: Owen Anderson Date: Tue, 14 Apr 2009 01:04:19 +0000 (+0000) Subject: LoopIndexSplit needs to inform the loop pass manager of the instructions it is X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0b2a153968ef4419be3dbec70d5eac12b031251f;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Scalar/LoopIndexSplit.cpp b/lib/Transforms/Scalar/LoopIndexSplit.cpp index a8cfaaf3b84..9f5f2cfd39d 100644 --- a/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/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);