Skip to content

Commit ca55566

Browse files
Update llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
Co-authored-by: Jay Foad <[email protected]>
1 parent 3f3c575 commit ca55566

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,8 @@ RegInterval WaitcntBrackets::getRegInterval(const MachineInstr *MI,
757757

758758
// AGPRs/VGPRs are tracked every 16 bits, SGPRs by 32 bits
759759
if (TRI->isVectorRegister(*MRI, Op.getReg())) {
760-
unsigned Reg = (RegIdx << 1) | (AMDGPU::isHi16Reg(MCReg, *TRI) ? 1 : 0);
761-
assert(Reg <= AGPR_OFFSET);
760+
unsigned Reg = RegIdx << 1 | (AMDGPU::isHi16Reg(MCReg, *TRI) ? 1 : 0);
761+
assert(Reg < AGPR_OFFSET);
762762
Result.first = Reg;
763763
if (TRI->isAGPR(*MRI, Op.getReg()))
764764
Result.first += AGPR_OFFSET;

0 commit comments

Comments
 (0)