[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
Wed Apr 8 15:09:19 PDT 2026


================
@@ -59,6 +70,7 @@ class AMDGPURewriteAGPRCopyMFMAImpl {
   LiveIntervals &LIS;
   LiveStacks &LSS;
   const RegisterClassInfo &RegClassInfo;
+  mutable unsigned NumRewritesPerformed = 0;
----------------
shiltian wrote:

> Since it won't work in release builds, I had to introduce a new one.

I don't think this is a good argument. I believe the debug counter works if the release build is with assertion enabled.

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


More information about the llvm-commits mailing list