Commit cf91b599 by Richard Biener Committed by Richard Biener

re PR tree-optimization/91145 (ICE: in vect_build_slp_tree_2, at…

re PR tree-optimization/91145 (ICE: in vect_build_slp_tree_2, at tree-vect-slp.c:1143 with -march=skylake-avx512 -O3)

2019-07-12  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/91145
	* tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
	chain check.

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

From-SVN: r273445
parent b847405a
2019-07-12 Richard Biener <rguenther@suse.de>
PR tree-optimization/91145
* tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
chain check.
2019-07-12 Alexandre Oliva <oliva@adacore.com>
* tree-eh.c (honor_protect_cleanup_actions): Use outer_
......
2019-07-12 Richard Biener <rguenther@suse.de>
PR tree-optimization/91145
* gcc.dg/torture/pr91145.c: New testcase.
2019-07-12 Alexandre Oliva <oliva@adacore.com>
* gcc.dg/gimplefe-44.c: New.
* gcc.dg/gimplefe-43.c: New.
2019-07-12 Richard Biener <rguenther@suse.de>
......
/* { dg-do compile } */
/* { dg-additional-options "-march=skylake-avx512" { target x86_64-*-* i?86-*-* } } */
int a, c;
unsigned b, e;
extern unsigned d[100];
void f()
{
for (int g = 0; g < 70; g++)
{
b += d[g] - c;
e -= g ^ a;
}
}
......@@ -1140,7 +1140,8 @@ vect_build_slp_tree_2 (vec_info *vinfo,
FOR_EACH_VEC_ELT (stmts, i, other_info)
{
/* But for reduction chains only check on the first stmt. */
if (REDUC_GROUP_FIRST_ELEMENT (other_info)
if (!STMT_VINFO_DATA_REF (other_info)
&& REDUC_GROUP_FIRST_ELEMENT (other_info)
&& REDUC_GROUP_FIRST_ELEMENT (other_info) != stmt_info)
continue;
if (STMT_VINFO_DEF_TYPE (other_info) != def_type)
......
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