Lines Matching refs:Call
34 static bool optimizeSQRT(CallInst *Call, Function *CalledFunc, in optimizeSQRT() argument
39 if (Call->onlyReadsMemory()) in optimizeSQRT()
57 Type *Ty = Call->getType(); in optimizeSQRT()
58 IRBuilder<> Builder(Call->getNextNode()); in optimizeSQRT()
63 Builder.getTrue(), Call->getNextNode(), /*Unreachable=*/false, in optimizeSQRT()
75 Call->replaceAllUsesWith(Phi); in optimizeSQRT()
81 Instruction *LibCall = Call->clone(); in optimizeSQRT()
86 Call->setDoesNotAccessMemory(); in optimizeSQRT()
91 ? Builder.CreateFCmpORD(Call, Call) in optimizeSQRT()
92 : Builder.CreateFCmpOGE(Call->getOperand(0), in optimizeSQRT()
97 Phi->addIncoming(Call, &CurrBB); in optimizeSQRT()
119 CallInst *Call = dyn_cast<CallInst>(&*II); in runPartiallyInlineLibCalls() local
122 if (!Call || !(CalledFunc = Call->getCalledFunction())) in runPartiallyInlineLibCalls()
125 if (Call->isNoBuiltin() || Call->isStrictFP()) in runPartiallyInlineLibCalls()
128 if (Call->isMustTailCall()) in runPartiallyInlineLibCalls()
141 if (TTI->haveFastSqrt(Call->getType()) && in runPartiallyInlineLibCalls()
142 optimizeSQRT(Call, CalledFunc, *CurrBB, BB, TTI, in runPartiallyInlineLibCalls()