[llvm] [NFC] [AMDGPU] Added 2 options to rewrite-agpr-copy-mfma for debugging. (PR #189437)
Dhruva Chakrabarti via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 12:47:11 PDT 2026
================
@@ -59,6 +70,7 @@ class AMDGPURewriteAGPRCopyMFMAImpl {
LiveIntervals &LIS;
LiveStacks &LSS;
const RegisterClassInfo &RegClassInfo;
+ mutable unsigned NumRewritesPerformed = 0;
----------------
dhruvachak wrote:
Or I could drop the const from tryReassigningMFMAChain. Then I don't need the mutable keyword.
Since it is just a counter, I would prefer keeping the const while using mutable for this counter.
https://github.com/llvm/llvm-project/pull/189437
More information about the llvm-commits
mailing list