Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/IPO/
DInliner.cpp256 int CandidateCost = IC.getCost() - (InlineConstants::CallPenalty + 1); in shouldBeDeferred()
286 TotalSecondaryCost += IC2.getCost(); in shouldBeDeferred()
296 if (inliningPreventsSomeOuterInline && TotalSecondaryCost < IC.getCost()) in shouldBeDeferred()
324 DEBUG(dbgs() << " NOT Inlining: cost=" << IC.getCost() in shouldInline()
325 << ", thres=" << (IC.getCostDelta() + IC.getCost()) in shouldInline()
329 Twine(IC.getCost()) + ", threshold=" + in shouldInline()
330 Twine(IC.getCostDelta() + IC.getCost()) + ")"); in shouldInline()
337 << " Cost = " << IC.getCost() in shouldInline()
346 DEBUG(dbgs() << " Inlining: cost=" << IC.getCost() in shouldInline()
347 << ", thres=" << (IC.getCostDelta() + IC.getCost()) in shouldInline()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DInlineCost.h68 int getCost() const { in getCost() function
75 assert(getCost() == C && "Cost exceeds InlineCost precision"); in InlineCost()
90 return getCost(); in getValue()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DInliner.cpp322 int CandidateCost = IC.getCost() - 1; in shouldBeDeferred()
352 TotalSecondaryCost += IC2.getCost(); in shouldBeDeferred()
362 if (inliningPreventsSomeOuterInline && TotalSecondaryCost < IC.getCost()) in shouldBeDeferred()
400 LLVM_DEBUG(dbgs() << " NOT Inlining: cost=" << IC.getCost() in shouldInline()
407 << NV("Cost", IC.getCost()) in shouldInline()
416 << " Cost = " << IC.getCost() in shouldInline()
431 LLVM_DEBUG(dbgs() << " Inlining: cost=" << IC.getCost() in shouldInline()
631 R << " with cost=" << NV("Cost", OIC->getCost()); in inlineCallsImpl()
1010 R << " with cost=" << NV("Cost", OIC->getCost()); in run()
DPartialInlining.cpp793 << NV("Cost", IC.getCost()) << ", threshold=" in shouldPartialInline()
794 << NV("Threshold", IC.getCostDelta() + IC.getCost()) << ")"; in shouldPartialInline()
824 << NV("Caller", Caller) << " with cost=" << NV("Cost", IC.getCost()) in shouldPartialInline()
826 << NV("Threshold", IC.getCostDelta() + IC.getCost()) << ")"; in shouldPartialInline()
/external/llvm/include/llvm/Analysis/
DInlineCost.h91 int getCost() const { in getCost() function
99 int getCostDelta() const { return Threshold - getCost(); } in getCostDelta()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DInlineCost.h104 int getCost() const { in getCost() function
118 int getCostDelta() const { return Threshold - getCost(); } in getCostDelta()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/PerfectShuffle/
DPerfectShuffle.cpp125 unsigned getCost() const { return Cost; } in getCost() function
309 unsigned Cost = ShufTab[LHS].Cost + Op->getCost(); in main()
347 unsigned Cost = NumVals + Op->getCost(); in main()
/external/swiftshader/third_party/LLVM/utils/PerfectShuffle/
DPerfectShuffle.cpp125 unsigned getCost() const { return Cost; } in getCost() function
309 unsigned Cost = ShufTab[LHS].Cost + Op->getCost(); in main()
347 unsigned Cost = NumVals + Op->getCost(); in main()
/external/llvm/utils/PerfectShuffle/
DPerfectShuffle.cpp125 unsigned getCost() const { return Cost; } in getCost() function
309 unsigned Cost = ShufTab[LHS].Cost + Op->getCost(); in main()
347 unsigned Cost = NumVals + Op->getCost(); in main()
/external/llvm/lib/Analysis/
DInlineCost.cpp224 int getCost() { return Cost; } in getCost() function in __anond8f3b4e60111::CallAnalyzer
965 Cost -= std::max(0, CA.getThreshold() - CA.getCost()); in visitCallSite()
1512 if (!ShouldInline && CA.getCost() < CA.getThreshold()) in getInlineCost()
1514 if (ShouldInline && CA.getCost() >= CA.getThreshold()) in getInlineCost()
1517 return llvm::InlineCost::get(CA.getCost(), CA.getThreshold()); in getInlineCost()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DInlineCost.cpp296 int getCost() { return Cost; } in getCost() function in __anon5999813e0111::CallAnalyzer
1300 Cost -= std::max(0, CA.getThreshold() - CA.getCost()); in visitCallSite()
2021 if (!ShouldInline && CA.getCost() < CA.getThreshold()) in getInlineCost()
2023 if (ShouldInline && CA.getCost() >= CA.getThreshold()) in getInlineCost()
2026 return llvm::InlineCost::get(CA.getCost(), CA.getThreshold()); in getInlineCost()
/external/llvm/include/llvm/CodeGen/GlobalISel/
DRegisterBankInfo.h142 unsigned getCost() const { return Cost; } in getCost() function
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/GlobalISel/
DRegisterBankInfo.h225 unsigned getCost() const { return Cost; } in getCost() function
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSIMachineScheduler.h139 int getCost() { return SUnits.size(); } in getCost() function
DSIMachineScheduler.cpp1428 if (Depth < Pred->Depth + Pred->getCost()) in fillStats()
1429 Depth = Pred->Depth + Pred->getCost(); in fillStats()
1443 Height = std::max(Height, Succ.first->Height + Succ.first->getCost()); in fillStats()
/external/llvm/lib/Target/AMDGPU/
DSIMachineScheduler.h130 int getCost() { return SUnits.size(); } in getCost() function
/external/llvm/lib/CodeGen/GlobalISel/
DRegisterBankInfo.cpp501 OS << "ID: " << getID() << " Cost: " << getCost() << " Mapping: "; in print()
DRegBankSelect.cpp353 bool Saturated = Cost.addLocalCost(InstrMapping.getCost()); in computeMapping()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/
DRegisterBankInfo.cpp592 OS << "ID: " << getID() << " Cost: " << getCost() << " Mapping: "; in print()
DRegBankSelect.cpp400 bool Saturated = Cost.addLocalCost(InstrMapping.getCost()); in computeMapping()