Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineAdvisor.cpp258 if (IC.getCost() <= 0) in shouldBeDeferred()
278 int CandidateCost = IC.getCost() - 1; in shouldBeDeferred()
310 TotalSecondaryCost += IC2.getCost(); in shouldBeDeferred()
328 return TotalSecondaryCost < IC.getCost(); in shouldBeDeferred()
330 int TotalCost = TotalSecondaryCost + IC.getCost() * NumCallerUsers; in shouldBeDeferred()
331 int Allowance = IC.getCost() * InlineDeferralScale; in shouldBeDeferred()
348 R << "(cost=" << ore::NV("Cost", IC.getCost()) in operator <<()
419 << " Cost = " << IC.getCost() in shouldInline()
H A DInlineOrder.cpp98 Cost = IC.getCost(); in CostPriority()
118 Cost = IC.getCost(); in CostBenefitPriority()
167 APInt LHS = P1.CostBenefit->getBenefit() * P2.CostBenefit->getCost(); in isMoreDesirable()
168 APInt RHS = P2.CostBenefit->getBenefit() * P1.CostBenefit->getCost(); in isMoreDesirable()
189 Cost = IC.getCost(); in MLPriority()
H A DInlineCost.cpp694 Cost -= std::max(0, CA.getThreshold() - CA.getCost()); in onLoweredCall()
1139 int getCost() const { return Cost; } in getCost() function in __anon463f3bdb0111::InlineCostCallAnalyzer
1233 CA.getCost()); in onLoweredCall()
2964 return CA.getCost(); in getInliningCostEstimate()
3090 return InlineCost::get(CA.getCost(), CA.getThreshold(), in getInlineCost()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInlineCost.h71 const APInt &getCost() const { return Cost; } in getCost() function
145 int getCost() const { in getCost() function
175 int getCostDelta() const { return Threshold - getCost(); } in getCostDelta()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DPartialInlining.cpp762 << NV("Cost", IC.getCost()) << ", threshold=" in shouldPartialInline()
763 << NV("Threshold", IC.getCostDelta() + IC.getCost()) << ")"; in shouldPartialInline()
793 << NV("Caller", Caller) << " with cost=" << NV("Cost", IC.getCost()) in shouldPartialInline()
795 << NV("Threshold", IC.getCostDelta() + IC.getCost()) << ")"; in shouldPartialInline()
H A DSampleProfile.cpp1009 return Cost.getCost() <= SampleColdCallSiteThreshold; in shouldInlineColdCallee()
1400 return InlineCost::get(Cost.getCost(), SampleHotCallSiteThreshold); in shouldInlineCandidate()
1405 return InlineCost::get(Cost.getCost(), SampleThreshold); in shouldInlineCandidate()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DRegisterBankInfo.h229 unsigned getCost() const { return Cost; } in getCost() function
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIMachineScheduler.h135 int getCost() { return SUnits.size(); } in getCost() function
H A DSIMachineScheduler.cpp1377 if (Depth < Pred->Depth + Pred->getCost()) in fillStats()
1378 Depth = Pred->Depth + Pred->getCost(); in fillStats()
1392 Height = std::max(Height, Succ.first->Height + Succ.first->getCost()); in fillStats()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DRegisterBankInfo.cpp654 OS << "ID: " << getID() << " Cost: " << getCost() << " Mapping: "; in print()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DRegBankSelect.cpp455 bool Saturated = Cost.addLocalCost(InstrMapping.getCost()); in computeMapping()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp1936 InstructionCost getCost() { in getCost() function in __anon71de2b2d0611::GeneratedRTChecks
9541 InstructionCost CheckCost = Checks.getCost(); in areRuntimeChecksProfitable()