tree-optimization/99721 - avoid SLP nodes we cannot schedule
authorRichard Biener <rguenther@suse.de>
Tue, 23 Mar 2021 08:10:17 +0000 (09:10 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 23 Mar 2021 09:50:04 +0000 (10:50 +0100)
commitffa6a7fba1f87b6b47763882be411a339061492d
tree0b5285e83c389a7c14bf01d65845ab6f26f0434f
parentfffefe3d9d1715f83c82331f2265e040f42d09fe
tree-optimization/99721 - avoid SLP nodes we cannot schedule

This makes sure we'll not run into SLP scheduling issues later by
rejecting all-constant children nodes without any scalar stmts early.

2021-03-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/99721
* tree-vect-slp.c (vect_slp_analyze_node_operations):
Make sure we can schedule the node.

* gfortran.dg/vect/pr99721.f90: New testcase.
gcc/testsuite/gfortran.dg/vect/pr99721.f90 [new file with mode: 0644]
gcc/tree-vect-slp.c