summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-25 23:40:21 +0000
committerDan Gohman <gohman@apple.com>2009-09-25 23:40:21 +0000
commit394468dc8e8bf6407edfbbbbe4ba0287b47256d6 (patch)
treea435d189bd0bc76ba374dd34f445b53af8b5f1d2 /llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp
parent5a6b11cb7158812655cad191abccf7d9fec7b4f1 (diff)
downloadbcm5719-llvm-394468dc8e8bf6407edfbbbbe4ba0287b47256d6.tar.gz
bcm5719-llvm-394468dc8e8bf6407edfbbbbe4ba0287b47256d6.zip
Rename ConstantFP's getInf to getInfinity.
llvm-svn: 82823
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp
index 6e81b61ae52..bb4d5e250b5 100644
--- a/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp
@@ -1034,8 +1034,8 @@ struct PowOpt : public LibCallOptimization {
// and negative infinite correctly.
// TODO: In fast-math mode, this could be just sqrt(x).
// TODO: In finite-only mode, this could be just fabs(sqrt(x)).
- Value *Inf = ConstantFP::getInf(CI->getType());
- Value *NegInf = ConstantFP::getInf(CI->getType(), true);
+ Value *Inf = ConstantFP::getInfinity(CI->getType());
+ Value *NegInf = ConstantFP::getInfinity(CI->getType(), true);
Value *Sqrt = EmitUnaryFloatFnCall(Op1, "sqrt", B, CI->getAttributes());
Value *FAbs = EmitUnaryFloatFnCall(Sqrt, "fabs", B, CI->getAttributes());
Value *FCmp = B.CreateFCmpOEQ(Op1, NegInf, "tmp");
OpenPOWER on IntegriCloud