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

Reid Spencer reid at x10sys.com
Wed Apr 12 12:28:27 PDT 2006



Changes in directory llvm/lib/Transforms/Scalar:

LoopStrengthReduce.cpp updated: 1.82 -> 1.83
---
Log message:

Get rid of a signed/unsigned compare warning.


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

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


Index: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff -u llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.82 llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.83
--- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.82	Fri Mar 24 01:14:34 2006
+++ llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp	Wed Apr 12 14:28:15 2006
@@ -882,7 +882,7 @@
            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));






More information about the llvm-commits mailing list