[amdgcn] Reinitialize registers for every function
authorKwok Cheung Yeung <kcy@codesourcery.com>
Fri, 15 Nov 2019 14:56:41 +0000 (14:56 +0000)
committerKwok Cheung Yeung <kcy@gcc.gnu.org>
Fri, 15 Nov 2019 14:56:41 +0000 (14:56 +0000)
commit3ed8f692900b356996cdcf0f88746018fbda57ff
tree3972cc0a3f40e5e0ee40ddb8a39da2be5935665c
parent9b41ebbcdf9e33285a0eebeb7c841afe20e4a7c1
[amdgcn] Reinitialize registers for every function

gcn_conditional_register_usage needs to be called for every function
to set the fixed registers depending on the kernel args currently
requested.

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

gcc/
* config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.

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