Searched refs:TotalWeight (Results 1 – 5 of 5) sorted by relevance
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/FuzzMutate/ |
| H A D | Random.h | 36 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()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CalcSpillWeights.cpp | 160 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()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SampleProfileLoaderBaseImpl.h | 551 uint64_t TotalWeight = 0; 560 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); 572 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); 609 if (TotalWeight > BBWeight) { 610 BBWeight = TotalWeight; 626 if (BBWeight >= TotalWeight) 627 EdgeWeights[UnknownEdge] = BBWeight - TotalWeight; 662 if (BBWeight >= TotalWeight) 663 EdgeWeights[SelfReferentialEdge] = BBWeight - TotalWeight; 671 if (UpdateBlockCount && !VisitedBlocks.count(EC) && TotalWeight > 0) { [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | BranchProbabilityInfo.cpp | 841 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()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 2164 uint64_t TotalWeight; in createCallMatchingInvoke() local 2165 if (NewCall->extractProfTotalWeight(TotalWeight)) { in createCallMatchingInvoke() 2168 auto NewWeights = uint32_t(TotalWeight) != TotalWeight in createCallMatchingInvoke() 2170 : MDB.createBranchWeights({uint32_t(TotalWeight)}); in createCallMatchingInvoke()
|