diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp b/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp index e93d448cc1b..98e5cc15d6c 100644 --- a/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp @@ -673,6 +673,7 @@ void LoopIndexSplit::removeBlocks(BasicBlock *DeadBB, Loop *LP,    while (!WorkList.empty()) {      BasicBlock *BB = WorkList.back(); WorkList.pop_back(); +    LPM->deleteSimpleAnalysisValue(BB, LP);      for(BasicBlock::iterator BBI = BB->begin(), BBE = BB->end();           BBI != BBE; ) {        Instruction *I = BBI; @@ -680,7 +681,6 @@ void LoopIndexSplit::removeBlocks(BasicBlock *DeadBB, Loop *LP,        I->replaceAllUsesWith(UndefValue::get(I->getType()));        I->eraseFromParent();      } -    LPM->deleteSimpleAnalysisValue(BB, LP);      DT->eraseNode(BB);      DF->removeBlock(BB);      LI->removeBlock(BB);  | 

