amdgcn: Add fold_left_plus vector reductions
authorAndrew Stubbs <ams@codesourcery.com>
Mon, 10 Feb 2020 13:23:29 +0000 (13:23 +0000)
committerAndrew Stubbs <ams@codesourcery.com>
Fri, 3 Jul 2020 10:00:28 +0000 (11:00 +0100)
commitbf628a97efaf11204ab02527b30ca71d7759ca37
tree5aab130b83bd083d48fa8b26aea9f6073e978556
parent9e5508c2d006f2d4f8670e6c3fed770ac1c85e64
amdgcn: Add fold_left_plus vector reductions

These aren't real in-order instructions, because the ISA can't do that
quickly, but a means to allow regular out-of-order reductions when that's
good enough, but the middle-end doesn't know so.

gcc/
* config/gcn/gcn-valu.md (fold_left_plus_<mode>): New.
gcc/config/gcn/gcn-valu.md