[PATCH] D110372: [AMDGPU] Limit promote alloca max size in functions
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 23 17:08:59 PDT 2021
rampitec 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);
----------------
arsenm wrote:
> Probably should be isEntryFunctionCC
The difference is the exclusion of AMDGPU_Gfx. What is that anyway?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110372/new/
https://reviews.llvm.org/D110372
More information about the llvm-commits
mailing list