Lines Matching defs:TotalSecondaryCost
247 /// \p TotalSecondaryCost will be set to the estimated cost of inlining the
250 shouldBeDeferred(Function *Caller, InlineCost IC, int &TotalSecondaryCost,
276 TotalSecondaryCost = 0;
280 // can apply a huge negative bonus to TotalSecondaryCost.
310 TotalSecondaryCost += IC2.getCost();
323 TotalSecondaryCost -= InlineConstants::LastCallToStaticBonus;
328 return TotalSecondaryCost < IC.getCost();
330 int TotalCost = TotalSecondaryCost + IC.getCost() * NumCallerUsers;
415 int TotalSecondaryCost = 0;
417 shouldBeDeferred(Caller, IC, TotalSecondaryCost, GetInlineCost)) {
420 << ", outer Cost = " << TotalSecondaryCost << '\n');