]> git.ipfire.org Git - thirdparty/gcc.git/commit
amdgcn: Use scalar instructions for addptrdi3
authorAndrew Stubbs <ams@codesourcery.com>
Wed, 13 May 2020 15:24:12 +0000 (16:24 +0100)
committerAndrew Stubbs <ams@codesourcery.com>
Wed, 7 Oct 2020 11:51:51 +0000 (12:51 +0100)
commit76136f7f0ce8f4e27ac194af6429d378360b7b41
tree225eb556673ffaf7d4a9dd23e40020fd2f290219
parentd22eecf8754cc22c7a19bfab9834f6d918c7838d
amdgcn: Use scalar instructions for addptrdi3

Allow addptr to use SPGRs as well as VGPRs for pointers.  This ought to
prevent some unnecessary copying back and forth.

gcc/ChangeLog:

* config/gcn/gcn.md (unspec): Add UNSPEC_ADDPTR.
(addptrdi3): Add SGPR alternative.
gcc/config/gcn/gcn.md