From abce4377d7432967c98ad2bcb831bed92ccee3a2 Mon Sep 17 00:00:00 2001 From: ebotcazou 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236999 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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.11.4.GIT