Lines Matching refs:RegUnitSets
1565 for (unsigned SubIdx = 0, EndIdx = RegUnitSets.size(); in pruneUnitSets()
1567 const RegUnitSet &SubSet = RegUnitSets[SubIdx]; in pruneUnitSets()
1574 const RegUnitSet &SuperSet = RegUnitSets[SuperIdx]; in pruneUnitSets()
1585 if (RegUnitSets[SubIdx].Name.size() < RegUnitSets[SuperIdx].Name.size()) in pruneUnitSets()
1586 RegUnitSets[SuperIdx].Name = RegUnitSets[SubIdx].Name; in pruneUnitSets()
1597 PrunedUnitSets[i].Name = RegUnitSets[SuperIdx].Name; in pruneUnitSets()
1598 PrunedUnitSets[i].Units.swap(RegUnitSets[SuperIdx].Units); in pruneUnitSets()
1600 RegUnitSets.swap(PrunedUnitSets); in pruneUnitSets()
1611 assert(RegUnitSets.empty() && "dirty RegUnitSets"); in computeRegUnitSets()
1620 RegUnitSets.resize(RegUnitSets.size() + 1); in computeRegUnitSets()
1621 RegUnitSets.back().Name = RC.getName(); in computeRegUnitSets()
1624 RC.buildRegUnitSet(RegUnitSets.back().Units); in computeRegUnitSets()
1628 findRegUnitSet(RegUnitSets, RegUnitSets.back()); in computeRegUnitSets()
1629 if (SetI != std::prev(RegUnitSets.end())) in computeRegUnitSets()
1630 RegUnitSets.pop_back(); in computeRegUnitSets()
1634 for (unsigned USIdx = 0, USEnd = RegUnitSets.size(); in computeRegUnitSets()
1636 dbgs() << "UnitSet " << USIdx << " " << RegUnitSets[USIdx].Name in computeRegUnitSets()
1638 for (auto &U : RegUnitSets[USIdx].Units) in computeRegUnitSets()
1647 for (unsigned USIdx = 0, USEnd = RegUnitSets.size(); in computeRegUnitSets()
1649 dbgs() << "UnitSet " << USIdx << " " << RegUnitSets[USIdx].Name in computeRegUnitSets()
1651 for (auto &U : RegUnitSets[USIdx].Units) in computeRegUnitSets()
1658 unsigned NumRegUnitSubSets = RegUnitSets.size(); in computeRegUnitSets()
1659 for (unsigned Idx = 0, EndIdx = RegUnitSets.size(); Idx != EndIdx; ++Idx) { in computeRegUnitSets()
1669 std::set_intersection(RegUnitSets[Idx].Units.begin(), in computeRegUnitSets()
1670 RegUnitSets[Idx].Units.end(), in computeRegUnitSets()
1671 RegUnitSets[SearchIdx].Units.begin(), in computeRegUnitSets()
1672 RegUnitSets[SearchIdx].Units.end(), in computeRegUnitSets()
1678 RegUnitSets.resize(RegUnitSets.size() + 1); in computeRegUnitSets()
1679 RegUnitSets.back().Name = in computeRegUnitSets()
1680 RegUnitSets[Idx].Name + "+" + RegUnitSets[SearchIdx].Name; in computeRegUnitSets()
1682 std::set_union(RegUnitSets[Idx].Units.begin(), in computeRegUnitSets()
1683 RegUnitSets[Idx].Units.end(), in computeRegUnitSets()
1684 RegUnitSets[SearchIdx].Units.begin(), in computeRegUnitSets()
1685 RegUnitSets[SearchIdx].Units.end(), in computeRegUnitSets()
1686 std::inserter(RegUnitSets.back().Units, in computeRegUnitSets()
1687 RegUnitSets.back().Units.begin())); in computeRegUnitSets()
1691 findRegUnitSet(RegUnitSets, RegUnitSets.back()); in computeRegUnitSets()
1692 if (SetI != std::prev(RegUnitSets.end())) in computeRegUnitSets()
1693 RegUnitSets.pop_back(); in computeRegUnitSets()
1695 DEBUG(dbgs() << "UnitSet " << RegUnitSets.size()-1 in computeRegUnitSets()
1696 << " " << RegUnitSets.back().Name << ":"; in computeRegUnitSets()
1697 for (auto &U : RegUnitSets.back().Units) in computeRegUnitSets()
1708 for (unsigned USIdx = 0, USEnd = RegUnitSets.size(); in computeRegUnitSets()
1710 dbgs() << "UnitSet " << USIdx << " " << RegUnitSets[USIdx].Name in computeRegUnitSets()
1712 for (auto &U : RegUnitSets[USIdx].Units) in computeRegUnitSets()
1739 for (unsigned USIdx = 0, USEnd = RegUnitSets.size(); in computeRegUnitSets()
1741 if (isRegUnitSubSet(RCRegUnits, RegUnitSets[USIdx].Units)) { in computeRegUnitSets()
1757 for (unsigned i = 0, e = RegUnitSets.size(); i != e; ++i) { in computeRegUnitSets()
1758 RegUnitSet &RUSet = RegUnitSets[i]; in computeRegUnitSets()
1843 for (unsigned Idx = 0, EndIdx = RegUnitSets.size(); Idx != EndIdx; ++Idx) in computeDerivedInfo()
1844 RegUnitSets[Idx].Weight = getRegUnitSetWeight(RegUnitSets[Idx].Units); in computeDerivedInfo()
1847 RegUnitSetOrder.reserve(RegUnitSets.size()); in computeDerivedInfo()
1848 for (unsigned Idx = 0, EndIdx = RegUnitSets.size(); Idx != EndIdx; ++Idx) in computeDerivedInfo()
1856 for (unsigned Idx = 0, EndIdx = RegUnitSets.size(); Idx != EndIdx; ++Idx) { in computeDerivedInfo()
1857 RegUnitSets[RegUnitSetOrder[Idx]].Order = Idx; in computeDerivedInfo()