Home
last modified time | relevance | path

Searched refs:TotalSecondaryCost (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/llvm/lib/Analysis/
DInlineAdvisor.cpp188 shouldBeDeferred(Function *Caller, InlineCost IC, int &TotalSecondaryCost, in shouldBeDeferred() argument
214 TotalSecondaryCost = 0; in shouldBeDeferred()
248 TotalSecondaryCost += IC2.getCost(); in shouldBeDeferred()
261 TotalSecondaryCost -= InlineConstants::LastCallToStaticBonus; in shouldBeDeferred()
266 return TotalSecondaryCost < IC.getCost(); in shouldBeDeferred()
268 int TotalCost = TotalSecondaryCost + IC.getCost() * NumCallerUsers; in shouldBeDeferred()
353 int TotalSecondaryCost = 0; in shouldInline() local
355 shouldBeDeferred(Caller, IC, TotalSecondaryCost, GetInlineCost)) { in shouldInline()
358 << ", outer Cost = " << TotalSecondaryCost << '\n'); in shouldInline()
/external/llvm/lib/Transforms/IPO/
DInliner.cpp233 int &TotalSecondaryCost) { in shouldBeDeferred() argument
254 TotalSecondaryCost = 0; in shouldBeDeferred()
286 TotalSecondaryCost += IC2.getCost(); in shouldBeDeferred()
294 TotalSecondaryCost += InlineConstants::LastCallToStaticBonus; in shouldBeDeferred()
296 if (inliningPreventsSomeOuterInline && TotalSecondaryCost < IC.getCost()) in shouldBeDeferred()
334 int TotalSecondaryCost = 0; in shouldInline() local
335 if (shouldBeDeferred(Caller, CS, IC, TotalSecondaryCost)) { in shouldInline()
338 << ", outer Cost = " << TotalSecondaryCost << '\n'); in shouldInline()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DInliner.cpp308 int &TotalSecondaryCost, in shouldBeDeferred() argument
334 TotalSecondaryCost = 0; in shouldBeDeferred()
346 if (!ApplyLastCallBonus && TotalSecondaryCost >= IC.getCost()) in shouldBeDeferred()
372 TotalSecondaryCost += IC2.getCost(); in shouldBeDeferred()
380 TotalSecondaryCost -= InlineConstants::LastCallToStaticBonus; in shouldBeDeferred()
382 if (inliningPreventsSomeOuterInline && TotalSecondaryCost < IC.getCost()) in shouldBeDeferred()
457 int TotalSecondaryCost = 0; in shouldInline() local
458 if (shouldBeDeferred(Caller, CS, IC, TotalSecondaryCost, GetInlineCost)) { in shouldInline()
461 << ", outer Cost = " << TotalSecondaryCost << '\n'); in shouldInline()