[llvm-branch-commits] [llvm] [AMDGPU] Model ordered XDL writes in expert scheduling (PR #218326)

Austin Kerbow via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Oct 19 23:40:59 PDT 2026


================
@@ -1519,9 +1572,21 @@ void WaitcntBrackets::applyWaitcnt(AMDGPU::InstCounterType T, unsigned Count) {
   if (Count >= UB)
     return;
   if (Count != 0) {
-    if (counterOutOfOrder(T))
-      return;
-    setScoreLB(T, std::max(getScoreLB(T), UB - Count));
+    const unsigned NewLB = std::max(getScoreLB(T), UB - Count);
+    if (counterOutOfOrder(T)) {
+      if (T != AMDGPU::VA_VDST_RD && T != AMDGPU::VA_VDST_WR)
+        return;
+
+      // VA_VDST_RD and VA_VDST_WR share a score range. Keep unresolved
+      // dependencies above the new lower bound when either side is out of
+      // order.
----------------
kerbowa wrote:

Removed.

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


More information about the llvm-branch-commits mailing list