From: Richard Biener Date: Wed, 23 Oct 2019 06:45:03 +0000 (+0000) Subject: tree-vect-slp.c (vect_build_slp_tree_2): Do not build op from scalars in case there... X-Git-Tag: upstream/12.2.0~20964 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f99d62629933adf91e7e0bc1b1ff344ffb68e1a2;p=platform%2Fupstream%2Fgcc.git tree-vect-slp.c (vect_build_slp_tree_2): Do not build op from scalars in case there's a constant operand in its definition. 2019-10-23 Richard Biener * tree-vect-slp.c (vect_build_slp_tree_2): Do not build op from scalars in case there's a constant operand in its definition. From-SVN: r277308 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ec312d..2445523 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-10-23 Richard Biener + + * tree-vect-slp.c (vect_build_slp_tree_2): Do not build + op from scalars in case there's a constant operand in its + definition. + 2019-10-23 Iain Sandoe * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index 864db64..e1061ed 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -1291,7 +1291,7 @@ vect_build_slp_tree_2 (vec_info *vinfo, slp_tree grandchild; FOR_EACH_VEC_ELT (SLP_TREE_CHILDREN (child), j, grandchild) - if (SLP_TREE_DEF_TYPE (grandchild) == vect_internal_def) + if (SLP_TREE_DEF_TYPE (grandchild) != vect_external_def) break; if (!grandchild) { @@ -1450,7 +1450,7 @@ vect_build_slp_tree_2 (vec_info *vinfo, slp_tree grandchild; FOR_EACH_VEC_ELT (SLP_TREE_CHILDREN (child), j, grandchild) - if (SLP_TREE_DEF_TYPE (grandchild) == vect_internal_def) + if (SLP_TREE_DEF_TYPE (grandchild) != vect_external_def) break; if (!grandchild) {