[llvm] [AMDGPU][MFI] Implement missing deserialization of dynamicVGPRBlockSize (PR #201939)
Diana Picus via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 10 04:50:19 PDT 2026
================
@@ -804,6 +804,10 @@ bool SIMachineFunctionInfo::initializeBaseYamlFields(
ReturnsVoid = YamlMFI.ReturnsVoid;
IsWholeWaveFunction = YamlMFI.IsWholeWaveFunction;
MinNumAGPRs = YamlMFI.MinNumAGPRs;
+ // A non-zero value means that we got this value from the function attribute.
+ // It takes precedence over the MFI value.
+ if (DynamicVGPRBlockSize == 0)
----------------
rovka wrote:
Should it really take precedence though? We don't do that for any of the other info in the MFI (we take whatever value is there for stuff like IsEntryFunction or IsWholeWaveFunction or ReturnsVoid, regardless of what the IR function prototype looks like).
https://github.com/llvm/llvm-project/pull/201939
More information about the llvm-commits
mailing list