Home
last modified time | relevance | path

Searched refs:Scaled64 (Results 1 – 8 of 8) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DSelectOptimize.cpp122 Scaled64 PredCost;
124 Scaled64 NonPredCost;
242 Scaled64
327 Scaled64 getMispredictionCost(const SelectLike SI, const Scaled64 CondCost);
330 Scaled64 getPredictedPathCost(Scaled64 TrueCost, Scaled64 FalseCost,
813 CostInfo LoopCost[2] = {{Scaled64::getZero(), Scaled64::getZero()}, in findProfitableSIGroupsInnerLoops()
814 {Scaled64::getZero(), Scaled64::getZero()}}; in findProfitableSIGroupsInnerLoops()
823 Scaled64 SelectCost = Scaled64::getZero(), BranchCost = Scaled64::getZero(); in findProfitableSIGroupsInnerLoops()
1083 Scaled64 GradientGain = Scaled64::get(100) * (Gain[1] - Gain[0]) / in checkLoopHeuristics()
1127 Scaled64 IPredCost = Scaled64::getZero(), in computeLoopCosts()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSyntheticCountsPropagation.cpp37 using Scaled64 = ScaledNumber<uint64_t>; typedef
95 DenseMap<Function *, Scaled64> Counts; in run()
98 M, [&](Function *F, uint64_t Count) { Counts[F] = Scaled64(Count, 0); }); in run()
104 std::optional<Scaled64> Res; in run()
114 Scaled64 EntryFreq(BFI.getEntryFreq().getFrequency(), 0); in run()
115 Scaled64 BBCount(BFI.getBlockFreq(CSBB).getFrequency(), 0); in run()
118 return std::optional<Scaled64>(BBCount); in run()
124 &CG, GetCallSiteProfCount, [&](const CallGraphNode *N, Scaled64 New) { in run()
/freebsd-14.2/contrib/llvm-project/llvm/lib/LTO/
H A DSummaryBasedOptimizations.cpp51 using Scaled64 = ScaledNumber<uint64_t>; in computeSyntheticCounts() typedef
54 return Scaled64(Edge.second.RelBlockFreq, -CalleeInfo::ScaleShift); in computeSyntheticCounts()
65 auto AddToEntryCount = [](ValueInfo V, Scaled64 New) { in computeSyntheticCounts()
78 Scaled64 EC(GetEntryCount(V), 0); in computeSyntheticCounts()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DSyntheticCountsUtils.h29 using Scaled64 = ScaledNumber<uint64_t>;
38 function_ref<std::optional<Scaled64>(NodeRef, EdgeRef)>;
39 using AddCountTy = function_ref<void(NodeRef, Scaled64)>;
H A DBlockFrequencyInfoImpl.h182 using Scaled64 = ScaledNumber<uint64_t>;
216 Scaled64 Scaled;
236 Scaled64 Scale;
1385 Scaled64 SumFreq;
1469 Scaled64 NewFreq;
1470 Scaled64 OneMinusSelfProb = Scaled64::getOne();
1478 if (OneMinusSelfProb != Scaled64::getOne())
1569 auto SumProb = std::vector<Scaled64>(NumBlocks);
1605 Scaled64 Prob = Jump.second;
1624 Scaled64 Discrepancy;
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DBlockFrequencyInfoImpl.cpp93 using Scaled64 = BlockFrequencyInfoImplBase::Scaled64; typedef
400 const Scaled64 InfiniteLoopScale(1, 12); in computeLoopScale()
483 const Scaled64 &Min, const Scaled64 &Max) { in convertFloatingToInteger()
496 Scaled64 ScalingFactor = Scaled64(1, MaxBits - Slack) / Max; in convertFloatingToInteger()
530 Scaled64 New = Loop.Scale * F; in unwrapLoop()
549 auto Min = Scaled64::getLargest(); in finalizeMetrics()
550 auto Max = Scaled64::getZero(); in finalizeMetrics()
613 Scaled64
616 return Scaled64::getZero(); in getFloatingBlockFreq()
647 Scaled64 Block(Freq.getFrequency(), 0); in printBlockFreqImpl()
[all …]
H A DSyntheticCountsUtils.cpp51 DenseMap<NodeRef, Scaled64> AdditionalCounts; in propagateFromSCC()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h106 using Scaled64 = ScaledNumber<uint64_t>; in updateRelBlockFreq() local
107 Scaled64 Temp(BlockFreq, ScaleShift); in updateRelBlockFreq()
108 Temp /= Scaled64::get(EntryFreq); in updateRelBlockFreq()