[llvm] [AMDGPU][SIInsertWaitcnts] Track SCC. Insert KM_CNT waits for SCC writes. (PR #157843)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 16 08:09:15 PDT 2025


================
@@ -1145,6 +1172,8 @@ void WaitcntBrackets::print(raw_ostream &OS) const {
           OS << RelScore << ":s" << J << " ";
         }
       }
+      if (T == KM_CNT && SCCScore > 0)
+        OS << SCCScore << ":SCC ";
----------------
jayfoad wrote:

Nit:
```suggestion
        OS << SCCScore << ":scc ";
```

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


More information about the llvm-commits mailing list