[llvm] [AMDGPU][NFC] Use `getScoreUB` for XCNT insertion. (PR #162448)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 9 08:24:35 PDT 2025


================
@@ -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);
----------------
jayfoad wrote:

Why do you still subtract 1? Is that required for some reason?

https://github.com/llvm/llvm-project/pull/162448


More information about the llvm-commits mailing list