[clang] [llvm] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #79236)

Pierre van Houtryve via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 1 00:02:13 PST 2024


================
@@ -2326,6 +2326,20 @@ bool SIInsertWaitcnts::insertWaitcntInBlock(MachineFunction &MF,
     }
 #endif
 
+    if (ST->isPreciseMemoryEnabled()) {
+      AMDGPU::Waitcnt Wait;
+      if (WCG == &WCGPreGFX12)
----------------
Pierre-vh wrote:

Use `ST->hasExtendedWaitCounts()` instead of checking the pointer?

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


More information about the cfe-commits mailing list