Home
last modified time | relevance | path

Searched refs:WeightSum (Results 1 – 1 of 1) sorted by relevance

/external/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp204 uint64_t WeightSum = 0; in calcMetadataWeights() local
215 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()