gcc/
PR tree-optimization/71006
* tree-vect-loop.c (vect_determine_vectorization_factor): Don't
consider COND_EXPR as a mask producer.
gcc/testsuite/
PR tree-optimization/71006
* gcc.dg/pr71006.c: New test.
From-SVN: r236171
+2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ PR tree-optimization/71006
+ * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
+ consider COND_EXPR as a mask producer.
+
2016-05-12 Marek Polacek <polacek@redhat.com>
PR driver/71063
+2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ PR tree-optimization/71006
+ * gcc.dg/pr71006.c: New test.
+
2016-05-12 Marek Polacek <polacek@redhat.com>
PR driver/71063
--- /dev/null
+/* PR target/71006 */
+/* { dg-do compile } */
+/* { dg-options "-O1 -ftree-vectorize" } */
+
+unsigned char uu, gu, e2;
+
+void
+fs (void)
+{
+ char *nq = (char *)&gu, *k4 = (char *)&gu;
+ while (*k4 < 1)
+ {
+ uu += (*nq != 0 || e2 != 0);
+ ++*k4;
+ }
+}
/* Bool ops don't participate in vectorization factor
computation. For comparison use compared types to
compute a factor. */
- if (TREE_CODE (scalar_type) == BOOLEAN_TYPE)
+ if (TREE_CODE (scalar_type) == BOOLEAN_TYPE
+ && is_gimple_assign (stmt)
+ && gimple_assign_rhs_code (stmt) != COND_EXPR)
{
if (STMT_VINFO_RELEVANT_P (stmt_info))
mask_producers.safe_push (stmt_info);