]> git.ipfire.org Git - thirdparty/gcc.git/commit
amdgcn: Allow vector reductions on constants
authorAndrew Stubbs <ams@codesourcery.com>
Sat, 12 Feb 2022 23:44:48 +0000 (23:44 +0000)
committerAndrew Stubbs <ams@codesourcery.com>
Mon, 14 Feb 2022 13:39:13 +0000 (13:39 +0000)
commitd51cad0b840a14c66732cb6a166c11ddf55d18b2
treea32526d0c87e88706249336a16f4c92907aa343b
parent0a1a3afb5fb36e2d10ad92bf788e16d837451571
amdgcn: Allow vector reductions on constants

Obviously it would be better if these reductions could be evaluated at compile
time, but this will avoid an ICE.

gcc/ChangeLog:

* config/gcn/gcn.cc (gcn_expand_reduc_scalar): Use force_reg.
gcc/config/gcn/gcn.cc