From 22e4f1fb6cda89074fa82ba70dfd757fb9ead5f0 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 30 Oct 2018 11:27:32 +0000 Subject: 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 --- gcc/tree-vect-slp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/tree-vect-slp.c') diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index 6ec7358..e7e5d25 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; } -- cgit v1.1