Lines Matching defs:Weights
75 // Weights are for internal use only. They are used by heuristics to help to
299 SmallVector<uint32_t, 2> Weights;
302 Weights.reserve(TI->getNumSuccessors());
310 Weights.push_back(Weight->getZExtValue());
311 WeightSum += Weights.back();
317 assert(Weights.size() == TI->getNumSuccessors() && "Checked above");
327 Weights[i] /= ScalingFactor;
328 WeightSum += Weights[i];
336 Weights[i] = 1;
343 BP.push_back({ Weights[i], static_cast<uint32_t>(WeightSum) });
421 // Calculate Edge Weights using "Pointer Heuristics". Predict a comparison
595 // Calculate Edge Weights using "Loop Branch Heuristics". Predict backedges