[amdgcn] Use first lane of v1 for zero offset
authorKwok Cheung Yeung <kcy@codesourcery.com>
Fri, 15 Nov 2019 14:48:15 +0000 (14:48 +0000)
committerKwok Cheung Yeung <kcy@gcc.gnu.org>
Fri, 15 Nov 2019 14:48:15 +0000 (14:48 +0000)
commitf6e20012ef792d659fec65fafecc29736c57f79c
tree423613b3c217c910b07eb5c2a293724665759c9f
parenta0e1dcd44f9c0ee22f56b73660f36072633adb69
[amdgcn] Use first lane of v1 for zero offset

Use v1 instead of v0 when a zero-valued VGPR is needed.  This frees up
v0 for other purposes.

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

gcc/
* config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
prologue use of v0.
(print_operand_address): Use v1 for zero vector offset.

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