diff options
author | Kwok Cheung Yeung <kcy@codesourcery.com> | 2019-11-15 15:36:34 +0000 |
---|---|---|
committer | Kwok Cheung Yeung <kcy@gcc.gnu.org> | 2019-11-15 15:36:34 +0000 |
commit | 342f94647678b60357e7f6e988874a4339fb5ea8 (patch) | |
tree | 1b79b3bfb2cb54852ce253822d74164e784e1323 /gcc/ipa-utils.h | |
parent | 1c3c3f455021130c429f57b09ef39bc218bd7fff (diff) | |
download | gcc-342f94647678b60357e7f6e988874a4339fb5ea8.zip gcc-342f94647678b60357e7f6e988874a4339fb5ea8.tar.gz gcc-342f94647678b60357e7f6e988874a4339fb5ea8.tar.bz2 |
[amdgcn] Restrict registers available to non-kernel functions
Restrict the number of SGPRs and VGPRs available to non-kernel functions
to improve compute-unit occupancy with multiple threads.
2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
gcc/
* config/gcn/gcn.c (default_requested_args): New.
(gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
set with default_requested_args.
(gcn_conditional_register_usage): Limit register usage of non-kernel
functions. Reassign fixed registers if a non-standard set of args is
requested.
* config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
From-SVN: r278301
Diffstat (limited to 'gcc/ipa-utils.h')
0 files changed, 0 insertions, 0 deletions