summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-05-14 16:47:34 +0000
committerDale Johannesen <dalej@apple.com>2009-05-14 16:47:34 +0000
commitf241df9abe218477894df4be2174c68b7d0963a0 (patch)
tree2938c507a0697a2b17bdfb2b54760eb1da166372
parent0a2171ccd50ad5fb7131e9827eaae03d9937332c (diff)
downloadbcm5719-llvm-f241df9abe218477894df4be2174c68b7d0963a0.tar.gz
bcm5719-llvm-f241df9abe218477894df4be2174c68b7d0963a0.zip
Use abs64 in one more place.
llvm-svn: 71775
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index 80d34f6f16c..2287f20086c 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -697,7 +697,7 @@ static bool useSIToFPInst(ConstantFP &InitV, ConstantFP &ExitV,
// 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;
OpenPOWER on IntegriCloud