[llvm] [AMDGPU] Add a debug option `-amdgpu-snop-padding` for `GCNHazardRecognizer` (PR #146587)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 2 02:11:35 PDT 2025


================
@@ -44,6 +44,11 @@ static cl::opt<unsigned, false, MFMAPaddingRatioParser>
                      cl::desc("Fill a percentage of the latency between "
                               "neighboring MFMA with s_nops."));
 
+// This is intended for debugging purposes only.
+static cl::opt<unsigned>
+    NopPadding("amdgpu-snop-padding", cl::init(0), cl::Hidden,
+               cl::desc("Insert a s_nop x between every instruction"));
----------------
jayfoad wrote:

"before every instruction" might be more accurate?

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


More information about the llvm-commits mailing list