diff options
| author | Owen Anderson <resistor@mac.com> | 2009-04-14 01:04:19 +0000 | 
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-04-14 01:04:19 +0000 | 
| commit | a1902318e33c5e4043f22920fd2da75dedfc9abc (patch) | |
| tree | 27309fe54dcbdcb8e5692bf07a9d66be5c590d38 /llvm | |
| parent | ca5ae66122218e61a67a37d93531c2e8fd73b132 (diff) | |
| download | bcm5719-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
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp | 1 | 
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); | 

