Get rid of a signed/unsigned compare warning.

llvm-svn: 27625
This commit is contained in:
Reid Spencer 2006-04-12 19:28:15 +00:00
parent e087b8e321
commit 56aa7c79b7

View File

@ -882,7 +882,7 @@ unsigned LoopStrengthReduce::CheckForIVReuse(const SCEVHandle &Stride,
I = TLI->legal_am_scale_begin(), E = TLI->legal_am_scale_end();
I != E; ++I) {
unsigned Scale = *I;
if (abs(SInt) < Scale || (SInt % Scale) != 0)
if (unsigned(abs(SInt)) < Scale || (SInt % Scale) != 0)
continue;
std::map<SCEVHandle, IVsOfOneStride>::iterator SI =
IVsByStride.find(SCEVUnknown::getIntegerSCEV(SInt/Scale, Type::UIntTy));