===================================================================
@@ -584,7 +584,6 @@ vect_analyze_scalar_cycles_1 (loop_vec_i
"Detected vectorizable nested cycle.\n");
STMT_VINFO_DEF_TYPE (stmt_vinfo) = vect_nested_cycle;
- STMT_VINFO_DEF_TYPE (reduc_stmt_info) = vect_nested_cycle;
}
else
{
===================================================================
@@ -0,0 +1,19 @@
+/* { dg-do compile } */
+/* { dg-additional-options "-ftree-vectorize" } */
+
+unsigned int a, c, d;
+double b;
+void e()
+{
+ for (; d; d++)
+ {
+ double f;
+ a = 2;
+ for (; a; a++)
+ {
+ c = b;
+ b = f;
+ f = c;
+ }
+ }
+}