Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCostModel.cpp74 static InstructionCost getCost(Instruction &Inst, TTI::TargetCostKind CostKind, in getCost() function
117 getCost(Inst, TTI::TCK_RecipThroughput, TTI, TLI); in run()
118 InstructionCost CodeSize = getCost(Inst, TTI::TCK_CodeSize, TTI, TLI); in run()
119 InstructionCost Lat = getCost(Inst, TTI::TCK_Latency, TTI, TLI); in run()
121 getCost(Inst, TTI::TCK_SizeAndLatency, TTI, TLI); in run()
130 getCost(Inst, OutputCostKindToTargetCostKind(CostKind), TTI, TLI); in run()
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 DInlineAdvisor.cpp293 if (IC.getCost() <= 0) in shouldBeDeferred()
313 int CandidateCost = IC.getCost() - 1; in shouldBeDeferred()
345 TotalSecondaryCost += IC2.getCost(); in shouldBeDeferred()
363 return TotalSecondaryCost < IC.getCost(); in shouldBeDeferred()
365 int TotalCost = TotalSecondaryCost + IC.getCost() * NumCallerUsers; in shouldBeDeferred()
366 int Allowance = IC.getCost() * InlineDeferralScale; in shouldBeDeferred()
383 R << "(cost=" << ore::NV("Cost", IC.getCost()) in operator <<()
454 << " Cost = " << IC.getCost() in shouldInline()
H A DInlineCost.cpp750 Cost -= std::max(0, CA.getThreshold() - CA.getCost()); in onLoweredCall()
1243 int getCost() const { return Cost; } in getCost() function in __anon463f3bdb0111::InlineCostCallAnalyzer
1337 CA.getCost()); in onLoweredCall()
3165 return CA.getCost(); in getInliningCostEstimate()
3299 return InlineCost::get(CA.getCost(), CA.getThreshold(), in getInlineCost()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInlineCost.h72 const APInt &getCost() const { return Cost; } in getCost() function
146 int getCost() const { in getCost() function
176 int getCostDelta() const { return Threshold - getCost(); } in getCostDelta()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DRegion.h34 LLVM_ABI InstructionCost getCost(Instruction *I) const;
42 void add(Instruction *I) { AfterCost += getCost(I); } in add()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DRegion.cpp14 InstructionCost ScoreBoard::getCost(Instruction *I) const { in getCost() function in llvm::sandboxir::ScoreBoard
21 auto Cost = getCost(I); in remove()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DPartialInlining.cpp757 << NV("Cost", IC.getCost()) << ", threshold=" in shouldPartialInline()
758 << NV("Threshold", IC.getCostDelta() + IC.getCost()) << ")"; in shouldPartialInline()
788 << NV("Caller", Caller) << " with cost=" << NV("Cost", IC.getCost()) in shouldPartialInline()
790 << NV("Threshold", IC.getCostDelta() + IC.getCost()) << ")"; in shouldPartialInline()
H A DSampleProfile.cpp1010 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 DAMDGPUSplitModule.cpp328 CostType getCost(const Function &F) const { return CostMap.at(&F); } in getCost() function in llvm::__anon00e757230111::SplitGraph
1509 PartCost += SG.getCost(*Fn); in splitAMDGPUModule()
H A DSIMachineScheduler.cpp1367 if (Depth < Pred->Depth + Pred->getCost()) in fillStats()
1368 Depth = Pred->Depth + Pred->getCost(); in fillStats()
1382 Height = std::max(Height, Succ.first->Height + Succ.first->getCost()); in fillStats()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DRegisterBankInfo.cpp652 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.cpp1892 InstructionCost getCost() { in getCost() function in __anon71de2b2d0511::GeneratedRTChecks
9558 InstructionCost TotalCost = Checks.getCost(); in isOutsideLoopWorkProfitable()