https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56118
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Mon Nov 9 12:59:17 2015 New Revision: 230020 URL: https://gcc.gnu.org/viewcvs?rev=230020&root=gcc&view=rev Log: 2015-11-09 Richard Biener <rguent...@suse.de> PR tree-optimization/56118 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare. * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export. * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New function. (vect_slp_analyze_data_ref_dependences): Instead of computing all dependences of the region DRs just analyze the code motions SLP vectorization will perform. Remove SLP instances that cannot have their store/load motions applied. (vect_analyze_data_refs): Allow DRs without a vectype in BB vectorization. * gcc.dg/vect/no-tree-sra-bb-slp-pr50730.c: Adjust. Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/vect/no-tree-sra-bb-slp-pr50730.c trunk/gcc/tree-vect-data-refs.c trunk/gcc/tree-vect-slp.c trunk/gcc/tree-vectorizer.h