Commit 7bd8bec5 by Richard Biener Committed by Richard Biener

re PR tree-optimization/92069 (ice in vect_analyze_scalar_cycles_1, at tree-vect-loop.c:560)

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.

	* gcc.dg/torture/pr92069.c: New testcase.

From-SVN: r276959
parent 312f3fa4
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.
......
/* { 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;
}
}
}
......@@ -584,7 +584,6 @@ vect_analyze_scalar_cycles_1 (loop_vec_info loop_vinfo, class loop *loop)
"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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment