From de482e91f177ea4f4b5dfbaeb1f6e77fb98aae29 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 1 Jun 2016 16:06:10 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-vect-loop.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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)); -- 2.30.2