Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSelectOptimize.cpp118 using Scaled64 = ScaledNumber<uint64_t>; typedef in __anon135b54a50111::SelectOptimizeImpl
122 Scaled64 PredCost;
124 Scaled64 NonPredCost;
244 Scaled64 getTrueOpCost(DenseMap<const Instruction *, CostInfo> &InstCostMap, in getTrueOpCost()
249 : Scaled64::getZero(); in getTrueOpCost()
261 Scaled64::get(*OrCost.getValue()); in getTrueOpCost()
264 return Scaled64::getZero(); in getTrueOpCost()
269 Scaled64
275 : Scaled64::getZero(); in getFalseOpCost()
283 return Scaled64::getZero(); in getFalseOpCost()
[all …]
/freebsd/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/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/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;
523 Scaled64 getFloatingBlockFreq(const BlockNode &Node) const;
982 using ProbMatrixType = std::vector<std::vector<std::pair<size_t, Scaled64>>>;
986 std::vector<Scaled64> &Freq) const;
1002 Scaled64 discrepancy(const ProbMatrixType &ProbMatrix,
1003 const std::vector<Scaled64> &Freq) const;
1047 Scaled64 getFloatingBlockFreq(const BlockT *BB) const {
1381 auto Freq = std::vector<Scaled64>(ReachableBlocks.size());
[all …]
/freebsd/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()
491 const unsigned MaxBits = sizeof(Scaled64::DigitsType) * CHAR_BIT; in convertFloatingToInteger()
496 Scaled64 ScalingFactor = Scaled64(1, MaxBits - Slack) / Max; in convertFloatingToInteger()
503 Scaled64 Scaled = BFI.Freqs[Index].Scaled * ScalingFactor; in convertFloatingToInteger()
528 Scaled64 &F = Working.isAPackage() ? Working.getPackagedLoop()->Scale in unwrapLoop()
530 Scaled64 New = Loop.Scale * F; in unwrapLoop()
549 auto Min = Scaled64::getLargest(); in finalizeMetrics()
550 auto Max = Scaled64::getZero(); in finalizeMetrics()
[all …]
H A DSyntheticCountsUtils.cpp51 DenseMap<NodeRef, Scaled64> AdditionalCounts; in propagateFromSCC()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h107 using Scaled64 = ScaledNumber<uint64_t>; in updateRelBlockFreq() local
108 Scaled64 Temp(BlockFreq, ScaleShift); in updateRelBlockFreq()
109 Temp /= Scaled64::get(EntryFreq); in updateRelBlockFreq()