Searched refs:TotalWeight (Results 1 – 7 of 7) sorted by relevance
| /src/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()
|
| /src/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() 281 TotalWeight += Weight; in weightCalcHelper() 313 TotalWeight *= 1.01F; in weightCalcHelper() 340 TotalWeight *= 0.5F; in weightCalcHelper() 343 return normalize(TotalWeight, Start->distance(*End), NumInstr); in weightCalcHelper() 344 return normalize(TotalWeight, LI.getSize(), NumInstr); in weightCalcHelper()
|
| H A D | MLRegAllocEvictAdvisor.cpp | 862 float TotalWeight = 0.0; in extractFeatures() local 877 TotalWeight = std::max(TotalWeight, LI.weight()); in extractFeatures() 940 SET(use_def_density, float, TotalWeight); in extractFeatures()
|
| H A D | SelectOptimize.cpp | 961 uint64_t TrueWeight, FalseWeight, TotalWeight; in hasExpensiveColdOperand() local 964 TotalWeight = TrueWeight + FalseWeight; in hasExpensiveColdOperand() 966 ColdOperand = TotalWeight * ColdOperandThreshold > 100 * MinWeight; in hasExpensiveColdOperand() 1002 divideNearest(SliceCost * HotWeight, TotalWeight); in hasExpensiveColdOperand()
|
| /src/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SampleProfileLoaderBaseImpl.h | 749 uint64_t TotalWeight = 0; 758 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); 770 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); 807 if (TotalWeight > BBWeight) { 808 BBWeight = TotalWeight; 824 if (BBWeight >= TotalWeight) 825 EdgeWeights[UnknownEdge] = BBWeight - TotalWeight; 860 if (BBWeight >= TotalWeight) 861 EdgeWeights[SelfReferentialEdge] = BBWeight - TotalWeight; 869 if (UpdateBlockCount && !VisitedBlocks.count(EC) && TotalWeight > 0) { [all …]
|
| /src/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()
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 2895 uint64_t TotalWeight; in createCallMatchingInvoke() local 2896 if (NewCall->extractProfTotalWeight(TotalWeight)) { in createCallMatchingInvoke() 2899 auto NewWeights = uint32_t(TotalWeight) != TotalWeight in createCallMatchingInvoke() 2901 : MDB.createBranchWeights({uint32_t(TotalWeight)}); in createCallMatchingInvoke()
|