Skip to content

Commit 982c9e6

Browse files
authored
[AMDGPU][NFC] Use getScoreUB for XCNT insertion. (#162448)
1 parent acdd3ea commit 982c9e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ void WaitcntBrackets::updateByEvent(WaitEventType E, MachineInstr &Inst) {
10191019
// SMEM and VMEM operations. So there will never be
10201020
// outstanding address translations for both SMEM and
10211021
// VMEM at the same time.
1022-
setScoreLB(T, CurrScore - 1);
1022+
setScoreLB(T, getScoreUB(T) - 1);
10231023
PendingEvents &= ~(1 << OtherEvent);
10241024
}
10251025
for (const MachineOperand &Op : Inst.all_uses())

0 commit comments

Comments
 (0)