tree-optimization/112793 - SLP of constant/external code-generated twice
commitd782ec8362eadc3169286eb1e39c631effd02323
authorRichard Biener <rguenther@suse.de>
Wed, 13 Dec 2023 13:23:31 +0000 (13 14:23 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 14 Dec 2023 15:08:20 +0000 (14 16:08 +0100)
treebc36d1c6aef63cb61c3b0541965a4156f3abfdec
parent8cf5afba5dc482fe7063654720bfb0c45354998c
tree-optimization/112793 - SLP of constant/external code-generated twice

The following makes the attempt at code-generating a constant/external
SLP node twice well-formed as that can happen when partitioning BB
vectorization attempts where we keep constants/externals unpartitioned.

PR tree-optimization/112793
* tree-vect-slp.cc (vect_schedule_slp_node): Already
code-generated constant/external nodes are OK.

* g++.dg/vect/pr112793.cc: New testcase.
gcc/testsuite/g++.dg/vect/pr112793.cc [new file with mode: 0644]
gcc/tree-vect-slp.cc