Lines Matching defs:Weights
80 // Weights are for internal use only. They are used by heuristics to help to
397 SmallVector<uint32_t, 2> Weights;
401 extractBranchWeights(WeightsNode, Weights);
402 for (unsigned I = 0, E = Weights.size(); I != E; ++I) {
403 WeightSum += Weights[I];
413 assert(Weights.size() == TI->getNumSuccessors() && "Checked above");
423 Weights[I] /= ScalingFactor;
424 WeightSum += Weights[I];
432 Weights[I] = 1;
439 BP.push_back({ Weights[I], static_cast<uint32_t>(WeightSum) });
513 // Calculate Edge Weights using "Pointer Heuristics". Predict a comparison
673 SmallVector<uint32_t, 4> Weights;