From d5dc0fb011af11c2ca4b5f42852dd51830b0fdee Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 6 Jan 2007 01:37:35 +0000 Subject: [PATCH] no need to worry about int vs uint any more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32946 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoopStrengthReduce.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 3e92a168823..53fa9e200c0 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -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; }