Skip to content

Commit 588de85

Browse files
committed
Fixups
1 parent 562a8c9 commit 588de85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/test/TableGen/ArtificialSubregs.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ include "llvm/Target/Target.td"
1616
// \ /
1717
// qsub
1818
//
19-
// Where the _hi parts are artificial and where ubregs ssub, dsub and qsub
19+
// Where the _hi parts are artificial and where subregs ssub, dsub and qsub
2020
// are all addressable as real registers.
2121
//
2222
// These are then used in {S0, S1, S2}, {D0, D1, D2} and {Q0, Q1, Q2},

llvm/utils/TableGen/Common/CodeGenRegisters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ CodeGenRegister::computeSubRegs(CodeGenRegBank &RegBank) {
410410
Parts.push_back(getSubRegIndex(SR->ExplicitSubRegs[j]));
411411
}
412412

413-
if (Parts.size() < 2)
413+
if (Parts.size() != SR->ExplicitSubRegs.size())
414414
continue;
415415

416416
// Offer this as an existing spelling for the concatenation of Parts.

0 commit comments

Comments
 (0)