[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
Fri Sep 12 01:57:22 PDT 2025


================
@@ -586,6 +591,7 @@ class SIInsertWaitcnts {
                              WaitcntBrackets &ScoreBrackets);
   bool insertWaitcntInBlock(MachineFunction &MF, MachineBasicBlock &Block,
                             WaitcntBrackets &ScoreBrackets);
+  bool asynchronouslyWritesSCC(unsigned Opcode) const;
----------------
jayfoad wrote:

We have future patches where this method will depend on properties of the subtarget. But yes it could be `static` to begin with.

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


More information about the llvm-commits mailing list