Home
last modified time | relevance | path

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

/netbsd/external/apache2/llvm/dist/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()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DCalcSpillWeights.cpp160 float TotalWeight = 0; in weightCalcHelper() local
195 TotalWeight += LiveIntervals::getSpillWeight(true, false, &MBFI, localMBB); in weightCalcHelper()
196 TotalWeight += LiveIntervals::getSpillWeight(false, true, &MBFI, localMBB); in weightCalcHelper()
261 TotalWeight += Weight; in weightCalcHelper()
295 TotalWeight *= 1.01F; in weightCalcHelper()
322 TotalWeight *= 0.5F; in weightCalcHelper()
325 return normalize(TotalWeight, Start->distance(*End), NumInstr); in weightCalcHelper()
326 return normalize(TotalWeight, LI.getSize(), NumInstr); in weightCalcHelper()
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileLoaderBaseImpl.h548 uint64_t TotalWeight = 0;
557 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge);
569 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge);
606 if (TotalWeight > BBWeight) {
607 BBWeight = TotalWeight;
623 if (BBWeight >= TotalWeight)
624 EdgeWeights[UnknownEdge] = BBWeight - TotalWeight;
659 if (BBWeight >= TotalWeight)
660 EdgeWeights[SelfReferentialEdge] = BBWeight - TotalWeight;
668 if (UpdateBlockCount && !VisitedBlocks.count(EC) && TotalWeight > 0) {
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp841 uint64_t TotalWeight = 0; in calcEstimatedHeuristics() local
875 TotalWeight += WeightVal; in calcEstimatedHeuristics()
882 if (!FoundEstimatedWeight || TotalWeight == 0) in calcEstimatedHeuristics()
890 if (TotalWeight > UINT32_MAX) { in calcEstimatedHeuristics()
891 uint64_t ScalingFactor = TotalWeight / UINT32_MAX + 1; in calcEstimatedHeuristics()
892 TotalWeight = 0; in calcEstimatedHeuristics()
898 TotalWeight += SuccWeights[Idx]; in calcEstimatedHeuristics()
900 assert(TotalWeight <= UINT32_MAX && "Total weight overflows"); in calcEstimatedHeuristics()
909 BranchProbability(SuccWeights[Idx], (uint32_t)TotalWeight); in calcEstimatedHeuristics()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DLocal.cpp2148 uint64_t TotalWeight; in createCallMatchingInvoke() local
2149 if (NewCall->extractProfTotalWeight(TotalWeight)) { in createCallMatchingInvoke()
2152 auto NewWeights = uint32_t(TotalWeight) != TotalWeight in createCallMatchingInvoke()
2154 : MDB.createBranchWeights({uint32_t(TotalWeight)}); in createCallMatchingInvoke()