[llvm-commits] [llvm] r69011 - /llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp
Owen Anderson
resistor at mac.com
Mon Apr 13 18:04:19 PDT 2009
Author: resistor
Date: Mon Apr 13 20:04:19 2009
New Revision: 69011
URL: http://llvm.org/viewvc/llvm-project?rev=69011&view=rev
Log:
LoopIndexSplit needs to inform the loop pass manager of the instructions it is
deleting, not just the basic block.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp?rev=69011&r1=69010&r2=69011&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp Mon Apr 13 20:04:19 2009
@@ -695,6 +695,7 @@
Instruction *I = BBI;
++BBI;
I->replaceAllUsesWith(UndefValue::get(I->getType()));
+ LPM->deleteSimpleAnalysisValue(I, LP);
I->eraseFromParent();
}
DT->eraseNode(BB);
More information about the llvm-commits
mailing list