Lines Matching defs:Weight
525 unsigned Weight = 0;
528 Weight += RegBank.getRegUnit(*I).Weight;
530 return Weight;
1293 // A Weight field caches the max per-register unit weight in each UberRegSet.
1296 // for which the unit weight equals the set weight. These units should not have
1297 // their weight increased.
1300 unsigned Weight;
1303 UberRegSet(): Weight(0) {}
1372 // Recompute each UberSet weight after changing unit weights.
1381 unsigned MaxWeight = 0, Weight = 0;
1384 if (Weight > MaxWeight)
1385 MaxWeight = Weight;
1387 Weight = 0;
1389 unsigned UWeight = RegBank.getRegUnit(*UnitI).Weight;
1394 Weight += UWeight;
1396 if (Weight > MaxWeight)
1397 MaxWeight = Weight;
1398 if (I->Weight != MaxWeight) {
1400 dbgs() << "UberSet " << I - UberSets.begin() << " Weight " << MaxWeight;
1404 // Update the set weight.
1405 I->Weight = MaxWeight;
1410 if (R->getRegUnits().count() == 1 && R->getWeight(RegBank) == I->Weight) {
1417 // normalizeWeight is a computeRegUnitWeights helper that adjusts the weight of
1418 // a register and its subregisters so that they have the same weight as their
1425 // - increases the weight of "singular" units
1457 if (UberSet->Weight > RegWeight) {
1458 // A register unit's weight can be adjusted only if it is the singular unit
1466 AdjustUnit = RegBank.newRegUnit(UberSet->Weight - RegWeight);
1472 RegBank.increaseRegUnitWeight(AdjustUnit, UberSet->Weight - RegWeight);
1485 // Compute a weight for each register unit created during getSubRegs.
1487 // The goal is that two registers in the same class will have the same weight,
1488 // where each register's weight is defined as sum of its units' weights.
1547 /// Merge sets only if the units have the same weight. For example, on ARM,
1563 unsigned UnitWeight = RegUnits[SubSet.Units[0]].Weight;
1567 && UnitWeight == RegUnits[SuperSet.Units[0]].Weight
1568 && UnitWeight == RegUnits[SuperSet.Units.back()].Weight) {
1806 // Compute a weight for each register unit created during getSubRegs.
1823 // Get the weight of each set.
1825 RegUnitSets[Idx].Weight = getRegUnitSetWeight(RegUnitSets[Idx].Units);