Lines Matching defs:TotalWeight
889 uint64_t TotalWeight = 0;
922 TotalWeight += WeightVal;
927 // If TotalWeight is 0 that means weight of each successor is 0 as well and
929 if (!FoundEstimatedWeight || TotalWeight == 0)
937 if (TotalWeight > UINT32_MAX) {
938 uint64_t ScalingFactor = TotalWeight / UINT32_MAX + 1;
939 TotalWeight = 0;
945 TotalWeight += SuccWeights[Idx];
947 assert(TotalWeight <= UINT32_MAX && "Total weight overflows");
956 BranchProbability(SuccWeights[Idx], (uint32_t)TotalWeight);