Skip to content

Commit 362594a

Browse files
authored
[TableGen] Remove unnecessary sortAndUniqueRegisters (#149125)
Each of the SRSets is already sorted and unique because it is a filtered version of RC->getMembers() which is already sorted and unique.
1 parent b3c72a9 commit 362594a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/utils/TableGen/Common/CodeGenRegisters.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2295,9 +2295,6 @@ void CodeGenRegBank::inferSubClassWithSubReg(CodeGenRegisterClass *RC) {
22952295
SRSets[I].push_back(R);
22962296
}
22972297

2298-
for (auto I : SRSets)
2299-
sortAndUniqueRegisters(I.second);
2300-
23012298
// Find matching classes for all SRSets entries. Iterate in SubRegIndex
23022299
// numerical order to visit synthetic indices last.
23032300
for (const CodeGenSubRegIndex &SubIdx : SubRegIndices) {

0 commit comments

Comments
 (0)