]> git.ipfire.org Git - thirdparty/gcc.git/commit
[amdgcn] Fix handling of VCC_CONDITIONAL_REG
authorKwok Cheung Yeung <kcy@codesourcery.com>
Fri, 15 Nov 2019 12:54:40 +0000 (12:54 +0000)
committerKwok Cheung Yeung <kcy@gcc.gnu.org>
Fri, 15 Nov 2019 12:54:40 +0000 (12:54 +0000)
commit9ecf84e6a5616e30a03b4813b696607b2aa12d47
tree04efeaec3e3696d5436244bdab309e41b1da986b
parentd03431d0f59f5aa5c2a8e2e5ea94ea1660b240f8
[amdgcn] Fix handling of VCC_CONDITIONAL_REG

Classify vcc_lo and vcc_hi into the VCC_CONDITIONAL_REG class,
and spill them into SGPRs if necessary.

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

gcc/
* config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
register class for VCC_LO and VCC_HI.
(gcn_spill_class): Use SGPR_REGS to spill registers in
VCC_CONDITIONAL_REG.

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