[llvm] 982c9e6 - [AMDGPU][NFC] Use `getScoreUB` for XCNT insertion. (#162448)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 12 22:37:09 PDT 2025
Author: Aaditya
Date: 2025-10-13T11:07:05+05:30
New Revision: 982c9e6ac52a13483a08fdcf007a565d41cf4615
URL: https://github.com/llvm/llvm-project/commit/982c9e6ac52a13483a08fdcf007a565d41cf4615
DIFF: https://github.com/llvm/llvm-project/commit/982c9e6ac52a13483a08fdcf007a565d41cf4615.diff
LOG: [AMDGPU][NFC] Use `getScoreUB` for XCNT insertion. (#162448)
Added:
Modified:
llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
Removed:
################################################################################
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())
More information about the llvm-commits
mailing list