no need to worry about int vs uint any more.
authorChris Lattner <sabre@nondot.org>
Sat, 6 Jan 2007 01:37:35 +0000 (01:37 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 6 Jan 2007 01:37:35 +0000 (01:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32946 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopStrengthReduce.cpp

index 3e92a168823c14a5f88fee1d285cd129570a36d1..53fa9e200c031b8c1ac82c61e2f880dab123528d 100644 (file)
@@ -900,8 +900,7 @@ unsigned LoopStrengthReduce::CheckForIVReuse(const SCEVHandle &Stride,
              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;
         }