Skip to content

Commit 92533bf

Browse files
committed
Made comment changes in SIRegisterInfo.cpp.
1 parent 652e51c commit 92533bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,12 +1776,12 @@ bool SIRegisterInfo::spillSGPR(MachineBasicBlock::iterator MI, int Index,
17761776
if (SpillToVGPR) {
17771777

17781778
// Since stack slot coloring pass is trying to optimize SGPR spills,
1779-
// VGPR lanes (mapped from spill stack slot) may be shared for unequal SGPR
1780-
// spills. This accounts for number of VGPR lanes alloted equal to the
1781-
// largest SGPR being spilled in them.
1779+
// VGPR lanes (mapped from spill stack slot) may be shared for SGPR
1780+
// spills of different sizes. This accounts for number of VGPR lanes alloted
1781+
// equal to the largest SGPR being spilled in them.
17821782
assert(SB.NumSubRegs <= VGPRSpills.size() &&
1783-
"Num of VGPR lanes mapped should be greater or equal to num of "
1784-
"SGPRs spilled");
1783+
"Num of SGPRs spilled should be less than or equal to num of "
1784+
"the VGPR lanes.");
17851785

17861786
for (unsigned i = 0, e = SB.NumSubRegs; i < e; ++i) {
17871787
Register SubReg =

0 commit comments

Comments
 (0)