Searched refs:TotalWeight (Results 1 – 7 of 7) sorted by relevance
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | CalcSpillWeights.cpp | 156 float TotalWeight = 0; in weightCalcHelper() local 191 TotalWeight += LiveIntervals::getSpillWeight(true, false, &MBFI, LocalMBB); in weightCalcHelper() 192 TotalWeight += LiveIntervals::getSpillWeight(false, true, &MBFI, LocalMBB); in weightCalcHelper() 257 TotalWeight += Weight; in weightCalcHelper() 291 TotalWeight *= 1.01F; in weightCalcHelper() 318 TotalWeight *= 0.5F; in weightCalcHelper() 321 return normalize(TotalWeight, Start->distance(*End), NumInstr); in weightCalcHelper() 322 return normalize(TotalWeight, LI.getSize(), NumInstr); in weightCalcHelper()
|
| H A D | SelectOptimize.cpp | 657 uint64_t TrueWeight, FalseWeight, TotalWeight; in hasExpensiveColdOperand() local 660 TotalWeight = TrueWeight + FalseWeight; in hasExpensiveColdOperand() 662 ColdOperand = TotalWeight * ColdOperandThreshold > 100 * MinWeight; in hasExpensiveColdOperand() 697 divideNearest(SliceCost * HotWeight, TotalWeight); in hasExpensiveColdOperand()
|
| H A D | MLRegallocEvictAdvisor.cpp | 762 float TotalWeight = 0.0; in extractFeatures() local 777 TotalWeight = std::max(TotalWeight, LI.weight()); in extractFeatures() 833 SET(use_def_density, float, TotalWeight); in extractFeatures()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | SampleProfileLoaderBaseImpl.h | 579 uint64_t TotalWeight = 0; 588 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); 600 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); 637 if (TotalWeight > BBWeight) { 638 BBWeight = TotalWeight; 654 if (BBWeight >= TotalWeight) 655 EdgeWeights[UnknownEdge] = BBWeight - TotalWeight; 690 if (BBWeight >= TotalWeight) 691 EdgeWeights[SelfReferentialEdge] = BBWeight - TotalWeight; 699 if (UpdateBlockCount && !VisitedBlocks.count(EC) && TotalWeight > 0) { [all …]
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | BranchProbabilityInfo.cpp | 900 uint64_t TotalWeight = 0; in calcEstimatedHeuristics() local 933 TotalWeight += WeightVal; in calcEstimatedHeuristics() 940 if (!FoundEstimatedWeight || TotalWeight == 0) in calcEstimatedHeuristics() 948 if (TotalWeight > UINT32_MAX) { in calcEstimatedHeuristics() 949 uint64_t ScalingFactor = TotalWeight / UINT32_MAX + 1; in calcEstimatedHeuristics() 950 TotalWeight = 0; in calcEstimatedHeuristics() 956 TotalWeight += SuccWeights[Idx]; in calcEstimatedHeuristics() 958 assert(TotalWeight <= UINT32_MAX && "Total weight overflows"); in calcEstimatedHeuristics() 967 BranchProbability(SuccWeights[Idx], (uint32_t)TotalWeight); in calcEstimatedHeuristics()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 2174 uint64_t TotalWeight; in createCallMatchingInvoke() local 2175 if (NewCall->extractProfTotalWeight(TotalWeight)) { in createCallMatchingInvoke() 2178 auto NewWeights = uint32_t(TotalWeight) != TotalWeight in createCallMatchingInvoke() 2180 : MDB.createBranchWeights({uint32_t(TotalWeight)}); in createCallMatchingInvoke()
|