[llvm] [AMDGPU][SIInsertWaitcnts][NFC] Drop MaxCounter member variable (PR #181092)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 11 09:28:43 PDT 2026


================
@@ -354,18 +360,19 @@ class WaitcntGenerator {
   const GCNSubtarget &ST;
   const SIInstrInfo &TII;
   AMDGPU::IsaVersion IV;
-  InstCounterType MaxCounter;
+  // TODO: Shouldn't this be a reference, because IsExpertMode can change per MF
----------------
vporpo wrote:

Yeah let me create a separate PR to fix this.

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


More information about the llvm-commits mailing list