[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Chris Lattner
sabre at nondot.org
Sun Apr 1 15:21:56 PDT 2007
Changes in directory llvm/lib/Transforms/Scalar:
LoopStrengthReduce.cpp updated: 1.122 -> 1.123
---
Log message:
print the type of an inserted IV in -debug mode.
---
Diffs of the changes: (+4 -3)
LoopStrengthReduce.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Index: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff -u llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.122 llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.123
--- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.122 Sun Mar 25 22:01:27 2007
+++ llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp Sun Apr 1 17:21:39 2007
@@ -1029,10 +1029,12 @@
IncV = ReuseIV.IncV;
}
+ const Type *ReplacedTy = CommonExprs->getType();
+
// Now that we know what we need to do, insert the PHI node itself.
//
- DOUT << "INSERTING IV of STRIDE " << *Stride << " and BASE "
- << *CommonExprs << " :\n";
+ DOUT << "INSERTING IV of TYPE " << *ReplacedTy << " of STRIDE "
+ << *Stride << " and BASE " << *CommonExprs << " :\n";
SCEVExpander Rewriter(*SE, *LI);
SCEVExpander PreheaderRewriter(*SE, *LI);
@@ -1043,7 +1045,6 @@
BasicBlock *LatchBlock = L->getLoopLatch();
- const Type *ReplacedTy = CommonExprs->getType();
// Emit the initial base value into the loop preheader.
Value *CommonBaseV
More information about the llvm-commits
mailing list