Lines Matching defs:Weights
661 // Weights for current iteration.
662 SmallVector<uint32_t> Weights;
663 // Weights to subtract after each iteration.
681 setBranchWeights(*Term, Info.Weights, /*IsExpected=*/false);
688 Info.Weights[Idx] =
689 Info.Weights[Idx] > SubWeight
690 ? std::max(Info.Weights[Idx] - SubWeight, SubWeight)
701 SmallVector<uint32_t> Weights;
702 if (!extractBranchWeights(*Term, Weights))
709 for (auto [Succ, Weight] : zip(successors(Term), Weights)) {
721 for (auto [Succ, Weight] : zip(successors(Term), Weights)) {
734 WeightInfos.insert({Term, {std::move(Weights), std::move(SubWeights)}});
1013 DenseMap<Instruction *, WeightInfo> Weights;
1014 initBranchWeights(Weights, L);
1043 for (auto &[Term, Info] : Weights) {
1073 for (const auto &[Term, Info] : Weights) {
1074 setBranchWeights(*Term, Info.Weights, /*IsExpected=*/false);