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

Jun Wang via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 21 16:08:22 PST 2023


================
@@ -1708,6 +1710,13 @@ bool SIInsertWaitcnts::insertWaitcntInBlock(MachineFunction &MF,
     }
 
     ++Iter;
+    if (ST->isPreciseMemoryEnabled() && Inst.mayLoadOrStore()) {
+      auto builder =
----------------
jwanggit86 wrote:

Done.

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


More information about the cfe-commits mailing list