[llvm] [AMDGPU] Replace dynamic VGPR feature with attribute (PR #133444)
Diana Picus via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 25 02:26:03 PDT 2025
================
@@ -48,6 +48,9 @@ SIMachineFunctionInfo::SIMachineFunctionInfo(const Function &F,
MaxNumWorkGroups = ST.getMaxNumWorkGroups(F);
assert(MaxNumWorkGroups.size() == 3);
+ IsDynamicVGPREnabled =
+ ST.isDynamicVGPREnabled() || AMDGPU::getIsDynamicVGPR(F);
----------------
rovka wrote:
Because the plan is to remove the subtarget feature after I update the internal users to rely on the attribute instead. In the meantime, both the attribute and the subtarget feature should work.
https://github.com/llvm/llvm-project/pull/133444
More information about the llvm-commits
mailing list