[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Chris Lattner sabre at nondot.org
Fri Jan 5 17:37:50 PST 2007



Changes in directory llvm/lib/Transforms/Scalar:

LoopStrengthReduce.cpp updated: 1.103 -> 1.104
---
Log message:

no need to worry about int vs uint any more.


---
Diffs of the changes:  (+1 -2)

 LoopStrengthReduce.cpp |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


Index: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff -u llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.103 llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.104
--- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.103	Sat Dec 30 23:48:39 2006
+++ llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp	Fri Jan  5 19:37:35 2007
@@ -900,8 +900,7 @@
              IE = SI->second.IVs.end(); II != IE; ++II)
         // FIXME: Only handle base == 0 for now.
         // Only reuse previous IV if it would not require a type conversion.
-        if (isZero(II->Base) &&
-            II->Base->getType()->canLosslesslyBitCastTo(Ty)) {
+        if (isZero(II->Base) && II->Base->getType() == Ty) {
           IV = *II;
           return Scale;
         }






More information about the llvm-commits mailing list