[llvm] [AMDGPU] Be less optimistic when allocating module scope lds (PR #161464)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 30 17:51:40 PDT 2025


================
@@ -608,6 +608,8 @@ class AMDGPULowerModuleLDS {
             ? LDSToKernelsThatNeedToAccessItIndirectly[HybridModuleRoot]
             : EmptySet;
 
+    const auto HybridModuleRootKernelsSize = HybridModuleRootKernels.size();
----------------
arsenm wrote:

I more meant no auto. I don't know what the type is which is exactly why you shouldn't use auto 

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


More information about the llvm-commits mailing list