[llvm-commits] [llvm] r71775 - /llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Dale Johannesen dalej at apple.com
Thu May 14 09:47:45 PDT 2009


Author: johannes
Date: Thu May 14 11:47:34 2009
New Revision: 71775

URL: http://llvm.org/viewvc/llvm-project?rev=71775&view=rev
Log:
Use abs64 in one more place.


Modified:
    llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=71775&r1=71774&r2=71775&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Thu May 14 11:47:34 2009
@@ -697,7 +697,7 @@
 
   // If the iteration range can be handled by SIToFPInst then use it.
   APInt Max = APInt::getSignedMaxValue(32);
-  if (Max.getZExtValue() > static_cast<uint64_t>(abs(intEV - intIV)))
+  if (Max.getZExtValue() > static_cast<uint64_t>(abs64(intEV - intIV)))
     return true;
 
   return false;





More information about the llvm-commits mailing list