From: Eric Botcazou Date: Wed, 1 Jun 2016 16:06:10 +0000 (+0000) Subject: tree-vect-loop.c (vect_determine_vectorization_factor): Also compute the factor for... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de482e91f177ea4f4b5dfbaeb1f6e77fb98aae29;p=gcc.git tree-vect-loop.c (vect_determine_vectorization_factor): Also compute the factor for live Phi nodes. * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute the factor for live Phi nodes. From-SVN: r236999 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c7486b2afcc..99c1eb7c26d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-06-01 Eric Botcazou + + * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute + the factor for live Phi nodes. + 2016-06-01 Jan Hubicka * loop-dolop.c (doloop_optimize): Us likely max iteration bound. diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index 1bc132a820c..42168da9230 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -216,7 +216,8 @@ vect_determine_vectorization_factor (loop_vec_info loop_vinfo) gcc_assert (stmt_info); - if (STMT_VINFO_RELEVANT_P (stmt_info)) + if (STMT_VINFO_RELEVANT_P (stmt_info) + || STMT_VINFO_LIVE_P (stmt_info)) { gcc_assert (!STMT_VINFO_VECTYPE (stmt_info)); scalar_type = TREE_TYPE (PHI_RESULT (phi));