commit | 0b2a153968ef4419be3dbec70d5eac12b031251f | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Tue Apr 14 01:04:19 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Tue Apr 14 01:04:19 2009 +0000 |
tree | 1a0b94e468a0ae57c422b0599268d15894030d0d | |
parent | ec65a7d89b3c23183433c69f43220a93f3573551 [diff] [blame] |
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 a8cfaaf..9f5f2cf 100644 --- a/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/lib/Transforms/Scalar/LoopIndexSplit.cpp
@@ -695,6 +695,7 @@ Instruction *I = BBI; ++BBI; I->replaceAllUsesWith(UndefValue::get(I->getType())); + LPM->deleteSimpleAnalysisValue(I, LP); I->eraseFromParent(); } DT->eraseNode(BB);