Searched refs:TotalWeight (Results 1 – 8 of 8) sorted by relevance
| /freebsd/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/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CalcSpillWeights.cpp | 166 float TotalWeight = 0; in weightCalcHelper() local 201 TotalWeight += in weightCalcHelper() 203 TotalWeight += in weightCalcHelper() 285 TotalWeight += Weight; in weightCalcHelper() 316 TotalWeight *= 1.01F; in weightCalcHelper() 343 TotalWeight *= 0.5F; in weightCalcHelper() 347 TotalWeight *= TRI.getSpillWeightScaleFactor(RC); in weightCalcHelper() 350 return normalize(TotalWeight, Start->distance(*End), NumInstr); in weightCalcHelper() 351 return normalize(TotalWeight, LI.getSize(), NumInstr); in weightCalcHelper()
|
| H A D | MLRegallocEvictAdvisor.cpp | |
| H A D | MLRegAllocEvictAdvisor.cpp | 952 float TotalWeight = 0.0; in extractFeatures() local 967 TotalWeight = std::max(TotalWeight, LI.weight()); in extractFeatures() 1030 SET(use_def_density, float, TotalWeight); in extractFeatures()
|
| H A D | SelectOptimize.cpp | 1077 uint64_t TrueWeight, FalseWeight, TotalWeight; in hasExpensiveColdOperand() local 1080 TotalWeight = TrueWeight + FalseWeight; in hasExpensiveColdOperand() 1082 ColdOperand = TotalWeight * ColdOperandThreshold > 100 * MinWeight; in hasExpensiveColdOperand() 1118 divideNearest(SliceCost * HotWeight, TotalWeight); in hasExpensiveColdOperand()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SampleProfileLoaderBaseImpl.h | 742 uint64_t TotalWeight = 0; 752 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); 765 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); 802 if (TotalWeight > BBWeight) { 803 BBWeight = TotalWeight; 819 if (BBWeight >= TotalWeight) 820 EdgeWeights[UnknownEdge] = BBWeight - TotalWeight; 855 if (BBWeight >= TotalWeight) 856 EdgeWeights[SelfReferentialEdge] = BBWeight - TotalWeight; 864 if (UpdateBlockCount && TotalWeight > 0 && [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | BranchProbabilityInfo.cpp | 886 uint64_t TotalWeight = 0; in calcEstimatedHeuristics() local 919 TotalWeight += WeightVal; in calcEstimatedHeuristics() 926 if (!FoundEstimatedWeight || TotalWeight == 0) in calcEstimatedHeuristics() 934 if (TotalWeight > UINT32_MAX) { in calcEstimatedHeuristics() 935 uint64_t ScalingFactor = TotalWeight / UINT32_MAX + 1; in calcEstimatedHeuristics() 936 TotalWeight = 0; in calcEstimatedHeuristics() 942 TotalWeight += SuccWeights[Idx]; in calcEstimatedHeuristics() 944 assert(TotalWeight <= UINT32_MAX && "Total weight overflows"); in calcEstimatedHeuristics() 953 BranchProbability(SuccWeights[Idx], (uint32_t)TotalWeight); in calcEstimatedHeuristics()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 2931 uint64_t TotalWeight; in createCallMatchingInvoke() local 2932 if (NewCall->extractProfTotalWeight(TotalWeight)) { in createCallMatchingInvoke() 2935 auto NewWeights = uint32_t(TotalWeight) != TotalWeight in createCallMatchingInvoke() 2937 : MDB.createBranchWeights({uint32_t(TotalWeight)}); in createCallMatchingInvoke()
|