File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
llvm/utils/TableGen/Common Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2106,9 +2106,7 @@ void CodeGenRegBank::computeRegUnitSets() {
2106
2106
2107
2107
// For each register class, list the UnitSets that are supersets.
2108
2108
RegClassUnitSets.resize (RegClasses.size ());
2109
- int RCIdx = -1 ;
2110
2109
for (auto &RC : RegClasses) {
2111
- ++RCIdx;
2112
2110
if (!RC.Allocatable )
2113
2111
continue ;
2114
2112
@@ -2130,12 +2128,13 @@ void CodeGenRegBank::computeRegUnitSets() {
2130
2128
++USIdx) {
2131
2129
if (isRegUnitSubSet (RCRegUnits, RegUnitSets[USIdx].Units )) {
2132
2130
LLVM_DEBUG (dbgs () << " " << USIdx);
2133
- RegClassUnitSets[RCIdx ].push_back (USIdx);
2131
+ RegClassUnitSets[RC. EnumValue ].push_back (USIdx);
2134
2132
}
2135
2133
}
2136
2134
LLVM_DEBUG (dbgs () << " \n " );
2137
- assert ((!RegClassUnitSets[RCIdx].empty () || !RC.GeneratePressureSet ) &&
2138
- " missing unit set for regclass" );
2135
+ assert (
2136
+ (!RegClassUnitSets[RC.EnumValue ].empty () || !RC.GeneratePressureSet ) &&
2137
+ " missing unit set for regclass" );
2139
2138
}
2140
2139
2141
2140
// For each register unit, ensure that we have the list of UnitSets that
You can’t perform that action at this time.
0 commit comments