Home
last modified time | relevance | path

Searched refs:TotalCost (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUSplitModule.cpp822 TotalCost -= PCost; in updateScore()
824 TotalCost += PCost; in updateScore()
833 CostType TotalCost = 0; member in llvm::__anon00e757230111::SplitProposal
844 OS << "[proposal] " << Name << ", total cost:" << TotalCost in print()
880 CodeSizeScore = double(TotalCost) / ModuleCost; in calculateScores()
930 CostType TotalCost = 0; member
1039 Entry.TotalCost += Cost; in setupWorkList()
1048 if (A.TotalCost != B.TotalCost) in setupWorkList()
1049 return A.TotalCost > B.TotalCost; in setupWorkList()
1066 dbgs() << "(total_cost:" << Entry.TotalCost in setupWorkList()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSampleProfileInference.cpp111 int64_t TotalCost = 0; in run() local
116 TotalCost += Edge.Cost * Edge.Flow; in run()
124 << " of " << TotalCost << " cost\n"); in run()
127 return TotalCost; in run()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineAdvisor.cpp365 int TotalCost = TotalSecondaryCost + IC.getCost() * NumCallerUsers; in shouldBeDeferred() local
367 return TotalCost < Allowance; in shouldBeDeferred()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSelectOptimize.cpp209 auto TotalCost = Scaled64::get(Cost.getValue()); in getOpCostOnBranch() local
213 TotalCost += It->second.NonPredCost; in getOpCostOnBranch()
215 return TotalCost; in getOpCostOnBranch()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DIROutliner.cpp2598 InstructionCost TotalCost = ComparisonCost * BranchCost * DifferentBlocks; in findCostForOutputBlocks() local
2600 LLVM_DEBUG(dbgs() << "Adding: " << TotalCost in findCostForOutputBlocks()
2603 OutputCost += TotalCost * NumOutputBranches; in findCostForOutputBlocks()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp9558 InstructionCost TotalCost = Checks.getCost(); in isOutsideLoopWorkProfitable() local
9559 if (!TotalCost.isValid()) in isOutsideLoopWorkProfitable()
9564 TotalCost += calculateEarlyExitCost(CostCtx, Plan, VF.Width); in isOutsideLoopWorkProfitable()
9570 if (TotalCost > VectorizeMemoryCheckThreshold) { in isOutsideLoopWorkProfitable()
9616 uint64_t RtC = TotalCost.getValue(); in isOutsideLoopWorkProfitable()