[llvm] [AMDGPU] Replace dynamic VGPR feature with attribute (PR #133444)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 24 06:28:26 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);
----------------
shiltian wrote:

Why isn't this an `&&`?

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


More information about the llvm-commits mailing list