From d7e874797d12278fb288ffdbc6861033fce357c2 Mon Sep 17 00:00:00 2001 From: Aaditya Date: Wed, 8 Oct 2025 15:12:35 +0530 Subject: [PATCH] [AMDGPU][NFC] Use `getScoreUB` for XCNT insertion. --- llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp index 5e27b37809c7c..6dcbced010a5a 100644 --- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp +++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp @@ -1019,7 +1019,7 @@ void WaitcntBrackets::updateByEvent(WaitEventType E, MachineInstr &Inst) { // SMEM and VMEM operations. So there will never be // outstanding address translations for both SMEM and // VMEM at the same time. - setScoreLB(T, CurrScore - 1); + setScoreLB(T, getScoreUB(T) - 1); PendingEvents &= ~(1 << OtherEvent); } for (const MachineOperand &Op : Inst.all_uses())