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

Juan Manuel Martinez CaamaƱo via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 1 04:11:26 PDT 2025


================
@@ -647,7 +649,8 @@ class AMDGPULowerModuleLDS {
           ModuleScopeVariables.insert(GV);
         } else if (K.second.size() == 1) {
           KernelAccessVariables.insert(GV);
-        } else if (set_is_subset(K.second, HybridModuleRootKernels)) {
+        } else if (K.second.size() == HybridModuleRootKernelsSize &&
----------------
jmmartinez wrote:

Isn't the same as ?

```suggestion
        } else if (K.second == HybridModuleRootKernels) {
```

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


More information about the llvm-commits mailing list