aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorKwok Cheung Yeung <kcy@codesourcery.com>2019-11-15 15:36:34 +0000
committerKwok Cheung Yeung <kcy@gcc.gnu.org>2019-11-15 15:36:34 +0000
commit342f94647678b60357e7f6e988874a4339fb5ea8 (patch)
tree1b79b3bfb2cb54852ce253822d74164e784e1323 /gcc/ipa-inline.c
parent1c3c3f455021130c429f57b09ef39bc218bd7fff (diff)
downloadgcc-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-inline.c')
0 files changed, 0 insertions, 0 deletions