Lines Matching refs:Sqrt
2151 Value *Sqrt, *Base = Pow->getArgOperand(0), *Expo = Pow->getArgOperand(1); in replacePowWithSqrt() local
2173 Sqrt = getSqrtCall(Base, AttributeList(), Pow->doesNotAccessMemory(), Mod, B, in replacePowWithSqrt()
2175 if (!Sqrt) in replacePowWithSqrt()
2181 Sqrt = B.CreateCall(FAbsFn, Sqrt, "abs"); in replacePowWithSqrt()
2184 Sqrt = copyFlags(*Pow, Sqrt); in replacePowWithSqrt()
2192 Sqrt = B.CreateSelect(FCmp, PosInf, Sqrt); in replacePowWithSqrt()
2197 Sqrt = B.CreateFDiv(ConstantFP::get(Ty, 1.0), Sqrt, "reciprocal"); in replacePowWithSqrt()
2199 return Sqrt; in replacePowWithSqrt()
2250 if (Value *Sqrt = replacePowWithSqrt(Pow, B)) in optimizePow() local
2251 return Sqrt; in optimizePow()
2261 Value *Sqrt = nullptr; in optimizePow() local
2280 Sqrt = getSqrtCall(Base, AttributeList(), Pow->doesNotAccessMemory(), M, in optimizePow()
2282 if (!Sqrt) in optimizePow()
2298 if (PowI && Sqrt) in optimizePow()
2299 return B.CreateFMul(PowI, Sqrt); in optimizePow()
2603 Function *Sqrt = Intrinsic::getDeclaration(M, Intrinsic::sqrt, ArgType); in optimizeSqrt() local
2604 Value *SqrtCall = B.CreateCall(Sqrt, OtherOp, "sqrt"); in optimizeSqrt()