]> gcc.gnu.org Git - gcc.git/commit
amdgcn: Prefer V32 on RDNA devices
authorAndrew Stubbs <ams@baylibre.com>
Thu, 22 Feb 2024 11:41:19 +0000 (11:41 +0000)
committerAndrew Stubbs <ams@baylibre.com>
Fri, 22 Mar 2024 15:54:33 +0000 (15:54 +0000)
commit6dedafe166cc02ae87b6a0699ad61ce3ffc46803
tree8bbbe7b4297b3d766e29352c9f7c012414d9fe4f
parentc6cf5789135236c5639075c8f235e7dd461b6ff6
amdgcn: Prefer V32 on RDNA devices

We run these devices in wavefrontsize64 for compatibility, but they actually
only have 32-lane vectors, natively.  If the upper part of a V64 is masked
off (as it is in V32) then RDNA devices will skip execution of the upper part
for most operations, so this adjustment shouldn't leave too much performance on
the table.  One exception is memory instructions, so full wavefrontsize32
support would be better.

The advantage is that we avoid the missing V64 operations (such as permute and
vec_extract).

gcc/ChangeLog:

* config/gcn/gcn.cc (gcn_vectorize_preferred_simd_mode): Prefer V32 on
RDNA devices.
gcc/config/gcn/gcn.cc
This page took 0.057518 seconds and 5 git commands to generate.