Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DInlineAdvisor.cpp249 if (IC.getCost() <= 0) in shouldBeDeferred()
269 int CandidateCost = IC.getCost() - 1; in shouldBeDeferred()
301 TotalSecondaryCost += IC2.getCost(); in shouldBeDeferred()
319 return TotalSecondaryCost < IC.getCost(); in shouldBeDeferred()
321 int TotalCost = TotalSecondaryCost + IC.getCost() * NumCallerUsers; in shouldBeDeferred()
322 int Allowance = IC.getCost() * InlineDeferralScale; in shouldBeDeferred()
339 R << "(cost=" << ore::NV("Cost", IC.getCost()) in operator <<()
410 << " Cost = " << IC.getCost() in shouldInline()
H A DInlineCost.cpp648 Cost -= std::max(0, CA.getThreshold() - CA.getCost()); in onLoweredCall()
1035 int getCost() const { return Cost; } in getCost() function in __anon9893a50b0111::InlineCostCallAnalyzer
1121 CA.getCost()); in onLoweredCall()
2813 return CA.getCost(); in getInliningCostEstimate()
2939 return InlineCost::get(CA.getCost(), CA.getThreshold()); in getInlineCost()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DInlineCost.h68 const APInt &getCost() const { return Cost; } in getCost() function
135 int getCost() const { in getCost() function
159 int getCostDelta() const { return Threshold - getCost(); } in getCostDelta()
/llvm-project-15.0.7/llvm/utils/PerfectShuffle/
H A DPerfectShuffle.cpp128 unsigned getCost() const { return Cost; } in getCost() function
370 unsigned Cost = ShufTab[LHS].Cost + Op->getCost(); in main()
408 unsigned Cost = NumVals + Op->getCost(); in main()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DPartialInlining.cpp810 << NV("Cost", IC.getCost()) << ", threshold=" in shouldPartialInline()
811 << NV("Threshold", IC.getCostDelta() + IC.getCost()) << ")"; in shouldPartialInline()
841 << NV("Caller", Caller) << " with cost=" << NV("Cost", IC.getCost()) in shouldPartialInline()
843 << NV("Threshold", IC.getCostDelta() + IC.getCost()) << ")"; in shouldPartialInline()
H A DSampleProfile.cpp981 return Cost.getCost() <= SampleColdCallSiteThreshold; in shouldInlineColdCallee()
1367 return InlineCost::get(Cost.getCost(), INT_MAX); in shouldInlineCandidate()
1372 return InlineCost::get(Cost.getCost(), SampleThreshold); in shouldInlineCandidate()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DRegisterBankInfo.h227 unsigned getCost() const { return Cost; } in getCost() function
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DRegisterBankInfo.cpp636 OS << "ID: " << getID() << " Cost: " << getCost() << " Mapping: "; in print()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DRegBankSelect.cpp452 bool Saturated = Cost.addLocalCost(InstrMapping.getCost()); in computeMapping()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp1966 InstructionCost getCost() { in getCost() function in GeneratedRTChecks
9938 InstructionCost CheckCost = Checks.getCost(); in areRuntimeChecksProfitable()