Lines Matching defs:TotalWeight
890 uint64_t TotalWeight = 0;
923 TotalWeight += WeightVal;
928 // If TotalWeight is 0 that means weight of each successor is 0 as well and
930 if (!FoundEstimatedWeight || TotalWeight == 0)
938 if (TotalWeight > UINT32_MAX) {
939 uint64_t ScalingFactor = TotalWeight / UINT32_MAX + 1;
940 TotalWeight = 0;
946 TotalWeight += SuccWeights[Idx];
948 assert(TotalWeight <= UINT32_MAX && "Total weight overflows");
957 BranchProbability(SuccWeights[Idx], (uint32_t)TotalWeight);