Home
last modified time | relevance | path

Searched refs:getCost (Results 1 – 10 of 10) sorted by relevance

/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
DInlineAdvisor.cpp205 if (IC.getCost() <= 0) in shouldBeDeferred()
225 int CandidateCost = IC.getCost() - 1; in shouldBeDeferred()
257 TotalSecondaryCost += IC2.getCost(); in shouldBeDeferred()
275 return TotalSecondaryCost < IC.getCost(); in shouldBeDeferred()
277 int TotalCost = TotalSecondaryCost + IC.getCost() * NumCallerUsers; in shouldBeDeferred()
278 int Allowance = IC.getCost() * InlineDeferralScale; in shouldBeDeferred()
295 R << "(cost=" << ore::NV("Cost", IC.getCost()) in operator <<()
366 << " Cost = " << IC.getCost() in shouldInline()
DInlineCost.cpp592 Cost -= std::max(0, CA.getThreshold() - CA.getCost()); in onLoweredCall()
952 int getCost() const { return Cost; } in getCost() function in __anon1e9e54f30111::InlineCostCallAnalyzer
1037 CA.getCost()); in onLoweredCall()
2721 return CA.getCost(); in getInliningCostEstimate()
2853 if (!ShouldInline.isSuccess() && CA.getCost() < CA.getThreshold()) in getInlineCost()
2855 if (ShouldInline.isSuccess() && CA.getCost() >= CA.getThreshold()) in getInlineCost()
2858 return llvm::InlineCost::get(CA.getCost(), CA.getThreshold()); in getInlineCost()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
DInlineCost.h63 const APInt &getCost() const { return Cost; } in getCost() function
130 int getCost() const { in getCost() function
154 int getCostDelta() const { return Threshold - getCost(); } in getCostDelta()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
DPartialInlining.cpp816 << NV("Cost", IC.getCost()) << ", threshold=" in shouldPartialInline()
817 << NV("Threshold", IC.getCostDelta() + IC.getCost()) << ")"; in shouldPartialInline()
847 << NV("Caller", Caller) << " with cost=" << NV("Cost", IC.getCost()) in shouldPartialInline()
849 << NV("Threshold", IC.getCostDelta() + IC.getCost()) << ")"; in shouldPartialInline()
DSampleProfile.cpp936 return Cost.getCost() <= SampleColdCallSiteThreshold; in shouldInlineColdCallee()
1294 return InlineCost::get(Cost.getCost(), INT_MAX); in shouldInlineCandidate()
1299 return InlineCost::get(Cost.getCost(), SampleThreshold); in shouldInlineCandidate()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
DRegisterBankInfo.h228 unsigned getCost() const { return Cost; } in getCost() function
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
DSIMachineScheduler.h136 int getCost() { return SUnits.size(); } in getCost() function
DSIMachineScheduler.cpp1399 if (Depth < Pred->Depth + Pred->getCost()) in fillStats()
1400 Depth = Pred->Depth + Pred->getCost(); in fillStats()
1414 Height = std::max(Height, Succ.first->Height + Succ.first->getCost()); in fillStats()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
DRegisterBankInfo.cpp639 OS << "ID: " << getID() << " Cost: " << getCost() << " Mapping: "; in print()
DRegBankSelect.cpp453 bool Saturated = Cost.addLocalCost(InstrMapping.getCost()); in computeMapping()