https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99924
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:58cd9fc8a61de09ba181c5ed5ac7fb91ec506414 commit r11-8001-g58cd9fc8a61de09ba181c5ed5ac7fb91ec506414 Author: Richard Biener <rguent...@suse.de> Date: Tue Apr 6 11:21:47 2021 +0200 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 <rguent...@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.