[llvm] [AMDGPU] Use alias analysis for SMEM/VMEM WAR waitcnts (PR #206569)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 30 02:28:12 PDT 2026


================
@@ -3090,13 +3110,13 @@ bool SIInsertWaitcnts::insertWaitcntInBlock(MachineFunction &MF,
       continue;
     }
 
-    if (TII.isSMRD(Inst)) {
+    if (TII.isSMRD(Inst) && TII.usesLGKM_CNT(Inst)) {
----------------
jayfoad wrote:

Could submit this separately as an independent improvement? Would it affect any tests?

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


More information about the llvm-commits mailing list