re PR tree-optimization/87800 (CPU2006 416.gamess failed to build with LTO)
authorRichard Biener <rguenther@suse.de>
Tue, 30 Oct 2018 11:27:32 +0000 (11:27 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 30 Oct 2018 11:27:32 +0000 (11:27 +0000)
2018-10-30  Richard Biener  <rguenther@suse.de>

PR tree-optimization/87800
* tree-vect-slp.c (vect_build_slp_tree_2): Reject any
non-induction or reduction PHIs.

From-SVN: r265619

gcc/ChangeLog
gcc/tree-vect-slp.c

index c5eecd0951dfb37815aa3ef41fef244751bec72a..da7b998f39af34ef898e50f1560c2f45bbb73b1a 100644 (file)
@@ -1,6 +1,12 @@
+2018-10-30  Richard Biener  <rguenther@suse.de>
+
+       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 <sameera.deshpande@linaro.org
 
-       * gcc/config/aarch64/falkor-tag-collision-avoidance.c
+       * config/aarch64/falkor-tag-collision-avoidance.c
        (execute_tag_collision_avoidance): Call df_note_add_problem.
 
 2018-10-30  Martin Liska  <mliska@suse.cz>
index 6ec7358c2dc2c7ddaa9846f7603b520a095d781f..e7e5d252c00cc0a054d3db3f9afaee87403dac51 100644 (file)
@@ -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;
     }