Lines Matching refs:Weight
55 // | | (Weight = 128)
59 // | (Weight = 4)
69 // Standard weight value. Used when none of the heuristics set weight for
73 // Minimum weight of an edge. Please note, that weight is NEVER 0.
103 // Multiply Edge Weight by two.
105 uint32_t Weight = BP->getEdgeWeight(Src, Dst);
108 if (Weight * 2 > MaxWeight)
111 BP->setEdgeWeight(Src, Dst, Weight * 2);
114 // Divide Edge Weight by two.
116 uint32_t Weight = BP->getEdgeWeight(Src, Dst);
118 assert(Weight > 0);
119 if (Weight / 2 < MIN_WEIGHT)
122 BP->setEdgeWeight(Src, Dst, Weight / 2);
277 uint32_t Weight = getEdgeWeight(BB, Succ);
280 Sum += Weight;
289 uint32_t Weight = getEdgeWeight(Src, Dst);
294 return (uint64_t)Weight * 5 > (uint64_t)Sum * 4;
304 uint32_t Weight = getEdgeWeight(BB, Succ);
307 Sum += Weight;
310 if (Weight > MaxWeight) {
311 MaxWeight = Weight;
323 // Return edge's weight. If can't find it, return DEFAULT_WEIGHT value.
336 uint32_t Weight) {
337 Weights[std::make_pair(Src, Dst)] = Weight;
339 << Dst->getNameStr() << " weight to " << Weight