Home
last modified time | relevance | path

Searched refs:TotalWeight (Results 1 – 7 of 7) sorted by relevance

/openbsd-src/gnu/llvm/llvm/include/llvm/FuzzMutate/
H A DRandom.h36 uint64_t TotalWeight = 0; variable
41 uint64_t totalWeight() const { return TotalWeight; } in totalWeight()
42 bool isEmpty() const { return TotalWeight == 0; } in isEmpty()
64 TotalWeight += Weight; in sample()
66 if (uniform<uint64_t>(RandGen, 1, TotalWeight) <= Weight) in sample()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DCalcSpillWeights.cpp156 float TotalWeight = 0; in weightCalcHelper() local
191 TotalWeight += LiveIntervals::getSpillWeight(true, false, &MBFI, LocalMBB); in weightCalcHelper()
192 TotalWeight += LiveIntervals::getSpillWeight(false, true, &MBFI, LocalMBB); in weightCalcHelper()
257 TotalWeight += Weight; in weightCalcHelper()
291 TotalWeight *= 1.01F; in weightCalcHelper()
318 TotalWeight *= 0.5F; in weightCalcHelper()
321 return normalize(TotalWeight, Start->distance(*End), NumInstr); in weightCalcHelper()
322 return normalize(TotalWeight, LI.getSize(), NumInstr); in weightCalcHelper()
H A DSelectOptimize.cpp683 uint64_t TrueWeight, FalseWeight, TotalWeight; in hasExpensiveColdOperand() local
686 TotalWeight = TrueWeight + FalseWeight; in hasExpensiveColdOperand()
688 ColdOperand = TotalWeight * ColdOperandThreshold > 100 * MinWeight; in hasExpensiveColdOperand()
723 divideNearest(SliceCost * HotWeight, TotalWeight); in hasExpensiveColdOperand()
H A DMLRegallocEvictAdvisor.cpp841 float TotalWeight = 0.0; in extractFeatures() local
856 TotalWeight = std::max(TotalWeight, LI.weight()); in extractFeatures()
919 SET(use_def_density, float, TotalWeight); in extractFeatures()
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileLoaderBaseImpl.h578 uint64_t TotalWeight = 0;
587 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge);
599 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge);
636 if (TotalWeight > BBWeight) {
637 BBWeight = TotalWeight;
653 if (BBWeight >= TotalWeight)
654 EdgeWeights[UnknownEdge] = BBWeight - TotalWeight;
689 if (BBWeight >= TotalWeight)
690 EdgeWeights[SelfReferentialEdge] = BBWeight - TotalWeight;
698 if (UpdateBlockCount && !VisitedBlocks.count(EC) && TotalWeight > 0) {
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp890 uint64_t TotalWeight = 0; in calcEstimatedHeuristics() local
923 TotalWeight += WeightVal; in calcEstimatedHeuristics()
930 if (!FoundEstimatedWeight || TotalWeight == 0) in calcEstimatedHeuristics()
938 if (TotalWeight > UINT32_MAX) { in calcEstimatedHeuristics()
939 uint64_t ScalingFactor = TotalWeight / UINT32_MAX + 1; in calcEstimatedHeuristics()
940 TotalWeight = 0; in calcEstimatedHeuristics()
946 TotalWeight += SuccWeights[Idx]; in calcEstimatedHeuristics()
948 assert(TotalWeight <= UINT32_MAX && "Total weight overflows"); in calcEstimatedHeuristics()
957 BranchProbability(SuccWeights[Idx], (uint32_t)TotalWeight); in calcEstimatedHeuristics()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLocal.cpp2280 uint64_t TotalWeight; in createCallMatchingInvoke() local
2281 if (NewCall->extractProfTotalWeight(TotalWeight)) { in createCallMatchingInvoke()
2284 auto NewWeights = uint32_t(TotalWeight) != TotalWeight in createCallMatchingInvoke()
2286 : MDB.createBranchWeights({uint32_t(TotalWeight)}); in createCallMatchingInvoke()