Home | History | Annotate | Download | only in IPO

Lines Matching refs:CS

117 static bool InlineCallIfPossible(CallSite CS, InlineFunctionInfo &IFI,
120 Function *Callee = CS.getCalledFunction();
121 Function *Caller = CS.getCaller();
125 if (!InlineFunction(CS, IFI, InsertLifetime))
153 // When processing our SCC, check to see if CS was inlined from some other
232 unsigned Inliner::getInlineThreshold(CallSite CS) const {
238 Function *Caller = CS.getCaller();
248 Function *Callee = CS.getCalledFunction();
262 bool Inliner::shouldInline(CallSite CS) {
263 InlineCost IC = getInlineCost(CS);
267 << ", Call: " << *CS.getInstruction() << "\n");
273 << ", Call: " << *CS.getInstruction() << "\n");
277 Function *Caller = CS.getCaller();
281 << ", Call: " << *CS.getInstruction() << "\n");
347 DEBUG(dbgs() << " NOT Inlining: " << *CS.getInstruction() <<
356 << ", Call: " << *CS.getInstruction() << '\n');
404 CallSite CS(cast<Value>(I));
407 if (!CS || isa<IntrinsicInst>(I))
413 if (CS.getCalledFunction() && CS.getCalledFunction()->isDeclaration())
416 CallSites.push_back(std::make_pair(CS, -1));
447 CallSite CS = CallSites[CSi].first;
449 Function *Caller = CS.getCaller();
450 Function *Callee = CS.getCalledFunction();
456 if (isInstructionTriviallyDead(CS.getInstruction(), TLI)) {
458 << *CS.getInstruction() << "\n");
460 CG[Caller]->removeCallEdgeFor(CS);
461 CS.getInstruction()->eraseFromParent();
480 if (!shouldInline(CS))
484 if (!InlineCallIfPossible(CS, InlineInfo, InlinedArrayAllocas,