From: Richard Biener Date: Tue, 30 Oct 2018 11:27:32 +0000 (+0000) Subject: re PR tree-optimization/87800 (CPU2006 416.gamess failed to build with LTO) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22e4f1fb6cda89074fa82ba70dfd757fb9ead5f0;p=gcc.git re PR tree-optimization/87800 (CPU2006 416.gamess failed to build with LTO) 2018-10-30 Richard Biener PR tree-optimization/87800 * tree-vect-slp.c (vect_build_slp_tree_2): Reject any non-induction or reduction PHIs. From-SVN: r265619 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c5eecd0951d..da7b998f39a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,12 @@ +2018-10-30 Richard Biener + + PR tree-optimization/87800 + * tree-vect-slp.c (vect_build_slp_tree_2): Reject any + non-induction or reduction PHIs. + 2018-10-30 Sameera Deshpande diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index 6ec7358c2dc..e7e5d252c00 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -1116,7 +1116,9 @@ vect_build_slp_tree_2 (vec_info *vinfo, if (stmt_info != other_info) return NULL; } - else + else if (def_type == vect_reduction_def + || def_type == vect_double_reduction_def + || def_type == vect_nested_cycle) { /* Else def types have to match. */ stmt_vec_info other_info; @@ -1130,6 +1132,8 @@ vect_build_slp_tree_2 (vec_info *vinfo, return NULL; } } + else + return NULL; node = vect_create_new_slp_node (stmts); return node; }