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

Jun Wang via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 9 10:07:50 PST 2023


================
@@ -52,6 +52,11 @@ static cl::opt<bool> ForceEmitZeroFlag(
   cl::desc("Force all waitcnt instrs to be emitted as s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)"),
   cl::init(false), cl::Hidden);
 
+static cl::opt<bool>
+    PreciseMemOpFlag("amdgpu-precise-memory-op",
+                     cl::desc("Emit s_waitcnt 0 after each memory operation"),
+                     cl::init(false));
+
----------------
jwanggit86 wrote:

Adding a command-line option for llc is from the 1st version of this patch. Now that we have decided to add a clang command-line option, this llc option is not really necessary anymore.

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


More information about the cfe-commits mailing list