Lines Matching refs:IC
232 bool Inliner::shouldBeDeferred(Function *Caller, CallSite CS, InlineCost IC, in shouldBeDeferred() argument
256 int CandidateCost = IC.getCost() - (InlineConstants::CallPenalty + 1); in shouldBeDeferred()
296 if (inliningPreventsSomeOuterInline && TotalSecondaryCost < IC.getCost()) in shouldBeDeferred()
304 InlineCost IC = getInlineCost(CS); in shouldInline() local
306 if (IC.isAlways()) { in shouldInline()
314 if (IC.isNever()) { in shouldInline()
323 if (!IC) { in shouldInline()
324 DEBUG(dbgs() << " NOT Inlining: cost=" << IC.getCost() in shouldInline()
325 << ", thres=" << (IC.getCostDelta() + IC.getCost()) in shouldInline()
329 Twine(IC.getCost()) + ", threshold=" + in shouldInline()
330 Twine(IC.getCostDelta() + IC.getCost()) + ")"); in shouldInline()
335 if (shouldBeDeferred(Caller, CS, IC, TotalSecondaryCost)) { in shouldInline()
337 << " Cost = " << IC.getCost() in shouldInline()
346 DEBUG(dbgs() << " Inlining: cost=" << IC.getCost() in shouldInline()
347 << ", thres=" << (IC.getCostDelta() + IC.getCost()) in shouldInline()
351 CS.getCaller()->getName() + " with cost=" + Twine(IC.getCost()) + in shouldInline()
352 " (threshold=" + Twine(IC.getCostDelta() + IC.getCost()) + ")"); in shouldInline()