Lines Matching defs:Weights
663 // Weights for current iteration.
664 SmallVector<uint32_t> Weights;
665 // Weights to subtract after each iteration.
683 setBranchWeights(*Term, Info.Weights, /*IsExpected=*/false);
690 Info.Weights[Idx] =
691 Info.Weights[Idx] > SubWeight
692 ? std::max(Info.Weights[Idx] - SubWeight, SubWeight)
703 SmallVector<uint32_t> Weights;
704 if (!extractBranchWeights(*Term, Weights))
711 for (auto [Succ, Weight] : zip(successors(Term), Weights)) {
723 for (auto [Succ, Weight] : zip(successors(Term), Weights)) {
736 WeightInfos.insert({Term, {std::move(Weights), std::move(SubWeights)}});
1015 DenseMap<Instruction *, WeightInfo> Weights;
1016 initBranchWeights(Weights, L);
1045 for (auto &[Term, Info] : Weights) {
1075 for (const auto &[Term, Info] : Weights) {
1076 setBranchWeights(*Term, Info.Weights, /*IsExpected=*/false);