Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSelectOptimize.cpp140 Scaled64 PredCost;
142 Scaled64 NonPredCost;
205 Scaled64 getMispredictionCost(const SelectInst *SI, const Scaled64 CondCost);
208 Scaled64 getPredictedPathCost(Scaled64 TrueCost, Scaled64 FalseCost,
571 CostInfo LoopCost[2] = {{Scaled64::getZero(), Scaled64::getZero()}, in findProfitableSIGroupsInnerLoops()
572 {Scaled64::getZero(), Scaled64::getZero()}}; in findProfitableSIGroupsInnerLoops()
581 Scaled64 SelectCost = Scaled64::getZero(), BranchCost = Scaled64::getZero(); in findProfitableSIGroupsInnerLoops()
807 Scaled64 GradientGain = Scaled64::get(100) * (Gain[1] - Gain[0]) / in checkLoopHeuristics()
849 Scaled64 IPredCost = Scaled64::getZero(), in computeLoopCosts()
885 Scaled64 TrueOpCost = Scaled64::getZero(), in computeLoopCosts()
[all …]
/llvm-project-15.0.7/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 Optional<Scaled64> Res = None; in run()
114 Scaled64 EntryFreq(BFI.getEntryFreq(), 0); in run()
115 Scaled64 BBCount(BFI.getBlockFreq(CSBB).getFrequency(), 0); in run()
118 return Optional<Scaled64>(BBCount); in run()
124 &CG, GetCallSiteProfCount, [&](const CallGraphNode *N, Scaled64 New) { in run()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DSyntheticCountsUtils.h29 using Scaled64 = ScaledNumber<uint64_t>;
37 using GetProfCountTy = function_ref<Optional<Scaled64>(NodeRef, EdgeRef)>;
38 using AddCountTy = function_ref<void(NodeRef, Scaled64)>;
H A DBlockFrequencyInfoImpl.h181 using Scaled64 = ScaledNumber<uint64_t>;
215 Scaled64 Scaled;
235 Scaled64 Scale;
1389 Scaled64 SumFreq;
1473 Scaled64 NewFreq;
1474 Scaled64 OneMinusSelfProb = Scaled64::getOne();
1482 if (OneMinusSelfProb != Scaled64::getOne())
1574 auto SumProb = std::vector<Scaled64>(NumBlocks);
1610 Scaled64 Prob = Jump.second;
1629 Scaled64 Discrepancy;
[all …]
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DBlockFrequencyInfoImpl.cpp92 using Scaled64 = BlockFrequencyInfoImplBase::Scaled64; typedef
399 const Scaled64 InfiniteLoopScale(1, 12); in computeLoopScale()
482 const Scaled64 &Min, const Scaled64 &Max) { in convertFloatingToInteger()
491 Scaled64 ScalingFactor; in convertFloatingToInteger()
535 Scaled64 New = Loop.Scale * F; in unwrapLoop()
554 auto Min = Scaled64::getLargest(); in finalizeMetrics()
555 auto Max = Scaled64::getZero(); in finalizeMetrics()
621 Scaled64
624 return Scaled64::getZero(); in getFloatingBlockFreq()
654 Scaled64 Block(Freq.getFrequency(), 0); in printBlockFreq()
[all …]
H A DSyntheticCountsUtils.cpp51 DenseMap<NodeRef, Scaled64> AdditionalCounts; in propagateFromSCC()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h94 using Scaled64 = ScaledNumber<uint64_t>; in updateRelBlockFreq() local
95 Scaled64 Temp(BlockFreq, ScaleShift); in updateRelBlockFreq()
96 Temp /= Scaled64::get(EntryFreq); in updateRelBlockFreq()