Rename ConstantFP's getInf to getInfinity.
[oota-llvm.git] / lib / Transforms / Scalar / SimplifyLibCalls.cpp
index 6e81b61ae5218e48d73ea4cf29595ad638f5cc19..bb4d5e250b54f14d8111bb110ee8e44d3e0c43b5 100644 (file)
@@ -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");