PR tree-optimization/92069
* tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
cycles do not set vect_nested_cycle on the latch definition.
* gcc.dg/torture/pr92069.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276959
138bc75d-0d04-0410-961f-
82ee72b054a4
+2019-10-14 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/92069
+ * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
+ cycles do not set vect_nested_cycle on the latch definition.
+
2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
* function-abi.h (expr_callee_abi): Declare.
+2019-10-14 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/92069
+ * gcc.dg/torture/pr92069.c: New testcase.
+
2019-10-14 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/cpp0x/constexpr-union5.C: Test location(s) too.
--- /dev/null
+/* { 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;
+ }
+ }
+}
"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
{