tree-optimization/99924 - visit permute nodes again when partitioning
authorRichard Biener <rguenther@suse.de>
Tue, 6 Apr 2021 09:21:47 +0000 (11:21 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 6 Apr 2021 10:15:30 +0000 (12:15 +0200)
commit58cd9fc8a61de09ba181c5ed5ac7fb91ec506414
tree6646a9e6dd1527803285dfe079847d69b4a4bd63
parentffc2331d7994d7fabb1f6ebed931024a9bbe69f2
tree-optimization/99924 - visit permute nodes again when partitioning

Since SLP graph partitioning works on scalar stmts (because it's done
for costing) we have to make sure to visit permute nodes multiple
times since they will not pull partitions together.

2021-04-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/99924
* tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
nodes w/o scalar stmts as visited.

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