Lines Matching refs:MinWeightIndex
89 int MinWeightIndex = -1; in findMinWeightIndex() local
91 if (MinWeightIndex < 0 || Weights[i] < Weights[MinWeightIndex]) in findMinWeightIndex()
92 MinWeightIndex = i; in findMinWeightIndex()
94 assert(getFlags().getRegAllocReserve() || MinWeightIndex >= 0); in findMinWeightIndex()
95 return MinWeightIndex; in findMinWeightIndex()
690 int32_t MinWeightIndex = findMinWeightIndex(Iter.RegMask, Iter.Weights); in handleNoFreeRegisters() local
692 if (MinWeightIndex < 0 || in handleNoFreeRegisters()
693 Iter.Cur->getWeight(Func) <= Iter.Weights[MinWeightIndex]) { in handleNoFreeRegisters()
720 MinWeightIndex = findMinWeightIndex(Iter.RegMaskUnfiltered, Iter.Weights); in handleNoFreeRegisters()
722 if (Iter.Cur->getWeight(Func) <= Iter.Weights[MinWeightIndex]) { in handleNoFreeRegisters()
737 const auto &Aliases = *RegAliases[MinWeightIndex]; in handleNoFreeRegisters()
773 Iter.Cur->setRegNumTmp(RegNumT::fromInt(MinWeightIndex)); in handleNoFreeRegisters()