• Home
  • Raw
  • Download

Lines Matching refs:CS

76 static bool InlineCallIfPossible(CallSite CS, InlineFunctionInfo &IFI,  in InlineCallIfPossible()  argument
79 Function *Callee = CS.getCalledFunction(); in InlineCallIfPossible()
80 Function *Caller = CS.getCaller(); in InlineCallIfPossible()
84 if (!InlineFunction(CS, IFI)) in InlineCallIfPossible()
197 unsigned Inliner::getInlineThreshold(CallSite CS) const { in getInlineThreshold()
201 Function *Caller = CS.getCaller(); in getInlineThreshold()
208 Function *Callee = CS.getCalledFunction(); in getInlineThreshold()
218 bool Inliner::shouldInline(CallSite CS) { in shouldInline() argument
219 InlineCost IC = getInlineCost(CS); in shouldInline()
223 << ", Call: " << *CS.getInstruction() << "\n"); in shouldInline()
229 << ", Call: " << *CS.getInstruction() << "\n"); in shouldInline()
234 Function *Caller = CS.getCaller(); in shouldInline()
235 int CurrentThreshold = getInlineThreshold(CS); in shouldInline()
236 float FudgeFactor = getInlineFudgeFactor(CS); in shouldInline()
241 << ", Call: " << *CS.getInstruction() << "\n"); in shouldInline()
302 DEBUG(dbgs() << " NOT Inlining: " << *CS.getInstruction() << in shouldInline()
311 << ", Call: " << *CS.getInstruction() << '\n'); in shouldInline()
359 CallSite CS(cast<Value>(I)); in runOnSCC() local
362 if (!CS || isa<IntrinsicInst>(I)) in runOnSCC()
368 if (CS.getCalledFunction() && CS.getCalledFunction()->isDeclaration()) in runOnSCC()
371 CallSites.push_back(std::make_pair(CS, -1)); in runOnSCC()
402 CallSite CS = CallSites[CSi].first; in runOnSCC() local
404 Function *Caller = CS.getCaller(); in runOnSCC()
405 Function *Callee = CS.getCalledFunction(); in runOnSCC()
411 if (isInstructionTriviallyDead(CS.getInstruction())) { in runOnSCC()
413 << *CS.getInstruction() << "\n"); in runOnSCC()
415 CG[Caller]->removeCallEdgeFor(CS); in runOnSCC()
416 CS.getInstruction()->eraseFromParent(); in runOnSCC()
437 if (!shouldInline(CS)) in runOnSCC()
441 if (!InlineCallIfPossible(CS, InlineInfo, InlinedArrayAllocas, in runOnSCC()