]> 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 15:16:23 +0000 (15:16 +0000)
commit5359f8058bfa669a60b07151bbffb1595152ce7e
treebac74968120ee8e856f4b7113f6425f2dfcb1059
parent23dd64c4715b2df2181aaf995e3040d54edba129
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.c (gcn_expand_reduc_scalar): Use force_reg.

(cherry picked from commit d51cad0b840a14c66732cb6a166c11ddf55d18b2)
gcc/config/gcn/gcn.c