Searched refs:WeightSum (Results 1 – 2 of 2) sorted by relevance
204 uint64_t WeightSum = 0; in calcMetadataWeights() local215 WeightSum += Weights.back(); in calcMetadataWeights()222 (WeightSum > UINT32_MAX) ? WeightSum / UINT32_MAX + 1 : 1; in calcMetadataWeights()224 WeightSum = 0; in calcMetadataWeights()227 WeightSum += Weights[i]; in calcMetadataWeights()230 if (WeightSum == 0) { in calcMetadataWeights()235 setEdgeProbability(BB, i, {Weights[i], static_cast<uint32_t>(WeightSum)}); in calcMetadataWeights()238 assert(WeightSum <= UINT32_MAX && in calcMetadataWeights()
269 uint64_t WeightSum = 0; in calcMetadataWeights() local282 WeightSum += Weights.back(); in calcMetadataWeights()293 (WeightSum > UINT32_MAX) ? WeightSum / UINT32_MAX + 1 : 1; in calcMetadataWeights()296 WeightSum = 0; in calcMetadataWeights()299 WeightSum += Weights[i]; in calcMetadataWeights()302 assert(WeightSum <= UINT32_MAX && in calcMetadataWeights()305 if (WeightSum == 0 || ReachableIdxs.size() == 0) { in calcMetadataWeights()308 WeightSum = TI->getNumSuccessors(); in calcMetadataWeights()314 BP.push_back({ Weights[i], static_cast<uint32_t>(WeightSum) }); in calcMetadataWeights()