Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineAdvisor.cpp257 if (IC.getCost() <= 0) in shouldBeDeferred()
277 int CandidateCost = IC.getCost() - 1; in shouldBeDeferred()
309 TotalSecondaryCost += IC2.getCost(); in shouldBeDeferred()
327 return TotalSecondaryCost < IC.getCost(); in shouldBeDeferred()
329 int TotalCost = TotalSecondaryCost + IC.getCost() * NumCallerUsers; in shouldBeDeferred()
330 int Allowance = IC.getCost() * InlineDeferralScale; in shouldBeDeferred()
347 R << "(cost=" << ore::NV("Cost", IC.getCost()) in operator <<()
418 << " Cost = " << IC.getCost() in shouldInline()
H A DInlineOrder.cpp98 Cost = IC.getCost(); in CostPriority()
117 Cost = IC.getCost(); in CostBenefitPriority()
164 APInt LHS = P1.CostBenefit->getBenefit() * P2.CostBenefit->getCost(); in isMoreDesirable()
165 APInt RHS = P2.CostBenefit->getBenefit() * P1.CostBenefit->getCost(); in isMoreDesirable()
186 Cost = IC.getCost(); in MLPriority()
H A DInlineCost.cpp694 Cost -= std::max(0, CA.getThreshold() - CA.getCost()); in onLoweredCall()
1133 int getCost() const { return Cost; } in getCost() function in __anoncf8652d10111::InlineCostCallAnalyzer
1226 CA.getCost()); in onLoweredCall()
2959 return CA.getCost(); in getInliningCostEstimate()
3085 return InlineCost::get(CA.getCost(), CA.getThreshold(), in getInlineCost()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInlineCost.h70 const APInt &getCost() const { return Cost; } in getCost() function
144 int getCost() const { in getCost() function
174 int getCostDelta() const { return Threshold - getCost(); } in getCostDelta()
/freebsd-14.2/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.cpp1060 return Cost.getCost() <= SampleColdCallSiteThreshold; in shouldInlineColdCallee()
1447 return InlineCost::get(Cost.getCost(), INT_MAX); in shouldInlineCandidate()
1452 return InlineCost::get(Cost.getCost(), SampleThreshold); in shouldInlineCandidate()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DRegisterBankInfo.h229 unsigned getCost() const { return Cost; } in getCost() function
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIMachineScheduler.h135 int getCost() { return SUnits.size(); } in getCost() function
H A DSIMachineScheduler.cpp1385 if (Depth < Pred->Depth + Pred->getCost()) in fillStats()
1386 Depth = Pred->Depth + Pred->getCost(); in fillStats()
1400 Height = std::max(Height, Succ.first->Height + Succ.first->getCost()); in fillStats()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DRegisterBankInfo.cpp653 OS << "ID: " << getID() << " Cost: " << getCost() << " Mapping: "; in print()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DRegBankSelect.cpp454 bool Saturated = Cost.addLocalCost(InstrMapping.getCost()); in computeMapping()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp2063 InstructionCost getCost() { in getCost() function in __anona898e7630711::GeneratedRTChecks
9727 InstructionCost CheckCost = Checks.getCost(); in areRuntimeChecksProfitable()