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
This commit is contained in:
Chris Lattner 2007-01-06 01:37:35 +00:00
parent ab4be63287
commit d5dc0fb011

View 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;
}