[amdgcn] Update lower bounds for the number of registers in non-leaf kernels
authorKwok Cheung Yeung <kcy@codesourcery.com>
Fri, 15 Nov 2019 16:32:29 +0000 (16:32 +0000)
committerKwok Cheung Yeung <kcy@gcc.gnu.org>
Fri, 15 Nov 2019 16:32:29 +0000 (16:32 +0000)
commit87fdbe697bb02faf054a21c5a593e51d538fe1a7
tree3c09462b26a4762ed36b6e0bfabeeb4c69718958
parent1ca59cbe15c56dce1efb1ed26863ee01109d513f
[amdgcn] Update lower bounds for the number of registers in non-leaf kernels

Reduce the lower limits on the number of registers requested by non-leaf
kernels to help improve CU occupancy.

2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>

gcc/
* config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
(gcn_conditional_register_usage): Use constants in place of hard-coded
values.
(gcn_hsa_declare_function_name): Set lower bound for number of
SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
MAX_NORMAL_VGPR_COUNT.

From-SVN: r278305
gcc/ChangeLog
gcc/config/gcn/gcn.c