Lines Matching refs:Sqrt
1923 Value *Sqrt, *Base = Pow->getArgOperand(0), *Expo = Pow->getArgOperand(1); in replacePowWithSqrt() local
1946 Sqrt = getSqrtCall(Base, Attrs, Pow->doesNotAccessMemory(), Mod, B, TLI); in replacePowWithSqrt()
1947 if (!Sqrt) in replacePowWithSqrt()
1953 Sqrt = B.CreateCall(FAbsFn, Sqrt, "abs"); in replacePowWithSqrt()
1956 Sqrt = copyFlags(*Pow, Sqrt); in replacePowWithSqrt()
1964 Sqrt = B.CreateSelect(FCmp, PosInf, Sqrt); in replacePowWithSqrt()
1969 Sqrt = B.CreateFDiv(ConstantFP::get(Ty, 1.0), Sqrt, "reciprocal"); in replacePowWithSqrt()
1971 return Sqrt; in replacePowWithSqrt()
2022 if (Value *Sqrt = replacePowWithSqrt(Pow, B)) in optimizePow() local
2023 return Sqrt; in optimizePow()
2033 Value *Sqrt = nullptr; in optimizePow() local
2052 Sqrt = getSqrtCall(Base, Pow->getCalledFunction()->getAttributes(), in optimizePow()
2054 if (!Sqrt) in optimizePow()
2070 if (PowI && Sqrt) in optimizePow()
2071 return B.CreateFMul(PowI, Sqrt); in optimizePow()
2364 Function *Sqrt = Intrinsic::getDeclaration(M, Intrinsic::sqrt, ArgType); in optimizeSqrt() local
2365 Value *SqrtCall = B.CreateCall(Sqrt, OtherOp, "sqrt"); in optimizeSqrt()