[PATCH] D110372: [AMDGPU] Limit promote alloca max size in functions

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 23 16:59:00 PDT 2021


arsenm added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp:182
+    // Do not promote alloca which will force spilling.
+    if (!AMDGPU::isKernelCC(&F))
+      MaxVGPRs = std::min(MaxVGPRs, 32u);
----------------
Probably should be isEntryFunctionCC


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110372/new/

https://reviews.llvm.org/D110372



More information about the llvm-commits mailing list