Searched refs:TotalWeight (Results 1 – 7 of 7) sorted by relevance
| /freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CalcSpillWeights.cpp | 167 float TotalWeight = 0; in weightCalcHelper() local 202 TotalWeight += LiveIntervals::getSpillWeight(true, false, &MBFI, LocalMBB); in weightCalcHelper() 203 TotalWeight += LiveIntervals::getSpillWeight(false, true, &MBFI, LocalMBB); in weightCalcHelper() 280 TotalWeight += Weight; in weightCalcHelper() 312 TotalWeight *= 1.01F; in weightCalcHelper() 339 TotalWeight *= 0.5F; in weightCalcHelper() 342 return normalize(TotalWeight, Start->distance(*End), NumInstr); in weightCalcHelper() 343 return normalize(TotalWeight, LI.getSize(), NumInstr); in weightCalcHelper()
|
| H A D | MLRegAllocEvictAdvisor.cpp | 859 float TotalWeight = 0.0; in extractFeatures() local 874 TotalWeight = std::max(TotalWeight, LI.weight()); in extractFeatures() 937 SET(use_def_density, float, TotalWeight); in extractFeatures()
|
| H A D | SelectOptimize.cpp | 908 uint64_t TrueWeight, FalseWeight, TotalWeight; in hasExpensiveColdOperand() local 911 TotalWeight = TrueWeight + FalseWeight; in hasExpensiveColdOperand() 913 ColdOperand = TotalWeight * ColdOperandThreshold > 100 * MinWeight; in hasExpensiveColdOperand() 949 divideNearest(SliceCost * HotWeight, TotalWeight); in hasExpensiveColdOperand()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SampleProfileLoaderBaseImpl.h | 721 uint64_t TotalWeight = 0; 730 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); 742 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); 779 if (TotalWeight > BBWeight) { 780 BBWeight = TotalWeight; 796 if (BBWeight >= TotalWeight) 797 EdgeWeights[UnknownEdge] = BBWeight - TotalWeight; 832 if (BBWeight >= TotalWeight) 833 EdgeWeights[SelfReferentialEdge] = BBWeight - TotalWeight; 841 if (UpdateBlockCount && !VisitedBlocks.count(EC) && TotalWeight > 0) { [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | BranchProbabilityInfo.cpp | 890 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()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 2849 uint64_t TotalWeight; in createCallMatchingInvoke() local 2850 if (NewCall->extractProfTotalWeight(TotalWeight)) { in createCallMatchingInvoke() 2853 auto NewWeights = uint32_t(TotalWeight) != TotalWeight in createCallMatchingInvoke() 2855 : MDB.createBranchWeights({uint32_t(TotalWeight)}); in createCallMatchingInvoke()
|