tree-vect-loop.c (vect_determine_vectorization_factor): Also compute the factor for...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 1 Jun 2016 16:06:10 +0000 (16:06 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 1 Jun 2016 16:06:10 +0000 (16:06 +0000)
* tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
the factor for live Phi nodes.

From-SVN: r236999

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

index c7486b2afcc3d98fb7bb53cc37dba10ac2b41e77..99c1eb7c26d51303b95ee4b177dfce8319353381 100644 (file)
@@ -1,3 +1,8 @@
+2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
+       the factor for live Phi nodes.
+
 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
 
        * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
index 1bc132a820c94018bc108fd861c3bc1f6fd7e115..42168da923072004e2bcc6f0c2b03b6cbb2a085a 100644 (file)
@@ -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));