diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-25 23:40:21 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-25 23:40:21 +0000 |
commit | a23643d5b7cb84a465f3535ee1a685c3612d5262 (patch) | |
tree | 7ba4453780b39d529beb7961215657e5d9c20c3d /lib/Transforms | |
parent | 4b2ebc19288491cb068f268c311d9fef0ec6a29f (diff) |
Rename ConstantFP's getInf to getInfinity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/SimplifyLibCalls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/lib/Transforms/Scalar/SimplifyLibCalls.cpp index 6e81b61ae5..bb4d5e250b 100644 --- a/lib/Transforms/Scalar/SimplifyLibCalls.cpp +++ b/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"); |