[llvm] [AMDGPU][MFI] Implement missing deserialization of dynamicVGPRBlockSize (PR #201939)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 6 12:30:19 PDT 2026


================
@@ -804,6 +804,9 @@ bool SIMachineFunctionInfo::initializeBaseYamlFields(
   ReturnsVoid = YamlMFI.ReturnsVoid;
   IsWholeWaveFunction = YamlMFI.IsWholeWaveFunction;
   MinNumAGPRs = YamlMFI.MinNumAGPRs;
+  // Don't override if not explicitly specified in YAML.
+  if (YamlMFI.DynamicVGPRBlockSize != 0)
----------------
vporpo wrote:

I pushed a version where the function attribute takes precedence over MFI. I think this is the expected behavior.

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


More information about the llvm-commits mailing list