[llvm] [AMDGPU] IGLP: Fixes for VMEM load detection and unsigned int handling (PR #135090)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 13 05:41:32 PDT 2025


================
@@ -2079,6 +2083,9 @@ class MFMASmallGemmSingleWaveOpt final : public IGLPStrategy {
 static unsigned DSWCount = 0;
 static unsigned DSWWithPermCount = 0;
 static unsigned DSWWithSharedVMEMCount = 0;
+static void resetDSWCounters() {
+  DSWCount = DSWWithPermCount = DSWWithSharedVMEMCount = 0;
+}
----------------
arsenm wrote:

I don't know, maybe it should within a single function. But certainly not across functions or compilations 

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


More information about the llvm-commits mailing list