[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
Fri Apr 11 09:19:56 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:

shared_ptr should ~never be used. static members should also not be used, this is not thread safe and maintains state between multiple compiles. I don't see why these are static at all 

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


More information about the llvm-commits mailing list