[llvm] [AMDGPU] IGLP: Fix static variables (PR #137549)

Robert Imschweiler via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 26 06:44:16 PST 2026


================
@@ -552,6 +555,27 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction,
     bool IsDead = false;
   };
 
+  struct MFMASmallGemmSingleWaveCache {
+    unsigned DSWCount = 0;
+    unsigned DSWWithPermCount = 0;
+    unsigned DSWWithSharedVMEMCount = 0;
+  };
+
+  struct MFMAExpInterleaveCache {
+    SmallVector<const MachineInstr *, 4> MFMAChainSeedInstrs;
+    const MachineInstr *FirstPipeDSRInstr = nullptr;
+    unsigned TransPipeCount = 0;
+    unsigned MFMAPipeCount = 0;
+    unsigned AddPipeCount = 0;
+    unsigned MFMAEnablement = 0;
+    unsigned ExpRequirement = 0;
+    unsigned MFMAChains = 0;
+    unsigned MFMAChainLength = 0;
+    bool HasCvt = false;
+    bool HasChainBetweenCvt = false;
+    bool AnalysisResult = false;
+  };
----------------
ro-i wrote:

yeah, sorry for the confusion.
Afaics, the `Initial` and `PreRAReentry` phases happen during the `machine-scheduler` pass, the `PostRA` phase during the `postmisched` pass. And we do want to keep our caches between these passes if possible.

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


More information about the llvm-commits mailing list