[llvm] [NFC] [AMDGPU] Added 2 options to rewrite-agpr-copy-mfma for debugging. (PR #189437)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 10:51:27 PDT 2026


================
@@ -35,11 +35,22 @@
 #include "llvm/CodeGen/SlotIndexes.h"
 #include "llvm/CodeGen/VirtRegMap.h"
 #include "llvm/InitializePasses.h"
+#include "llvm/Support/CommandLine.h"
 
 using namespace llvm;
 
 #define DEBUG_TYPE "amdgpu-rewrite-agpr-copy-mfma"
 
+static cl::opt<bool> DisableRewriteAGPRCopyMFMA(
+    "amdgpu-disable-rewrite-agpr-copy-mfma", cl::Hidden,
+    cl::desc("Disable the post-RA AGPR copy MFMA rewriting pass."),
+    cl::init(false));
----------------
shiltian wrote:

That is a fairly new one, 8 months ago? https://github.com/llvm/llvm-project/pull/145059/

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


More information about the llvm-commits mailing list