Commit d6350f82 by Richard Biener Committed by Richard Biener

re PR tree-optimization/91181 (Failing as_as type conversion in vect_build_slp_tree_1)

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

	PR tree-optimization/91181
	* tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
	IFN_LOADs as calls.

	* gcc.dg/pr91181.c: New testcase.

From-SVN: r273542
parent 361c0470
2019-07-17 Richard Biener <rguenther@suse.de>
PR tree-optimization/91181
* tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
IFN_LOADs as calls.
2019-07-16 Uroš Bizjak <ubizjak@gmail.com> 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (*testdi_1): Match CCZmode for * config/i386/i386.md (*testdi_1): Match CCZmode for
......
2019-07-17 Richard Biener <rguenther@suse.de>
PR tree-optimization/91181
* gcc.dg/pr91181.c: New testcase.
2019-07-16 Harald Anlauf <anlauf@gmx.de> 2019-07-16 Harald Anlauf <anlauf@gmx.de>
PR fortran/90903 PR fortran/90903
......
/* { dg-do compile } */
/* { dg-options "-Ofast" } */
/* { dg-additional-options "-mavx" { target x86_64-*-* i?86-*-* } } */
enum { a, b, c };
float *d, *e;
int f, g, h, i;
int j()
{
float a;
for (; h; h++)
{
i = h * 4;
a = d[i + b];
if (a) {
e[i + b] = g < d[i + b] * f * a ? g : d[i + b] * f * a;
e[i + c] = g < d[i + c] * f * a ? g : d[i + c] * f * a;
}
e[i + b] = e[i + c];
}
}
...@@ -857,7 +857,7 @@ vect_build_slp_tree_1 (unsigned char *swap, ...@@ -857,7 +857,7 @@ vect_build_slp_tree_1 (unsigned char *swap,
continue; continue;
} }
if (rhs_code == CALL_EXPR) if (!load_p && rhs_code == CALL_EXPR)
{ {
if (!compatible_calls_p (as_a <gcall *> (stmts[0]->stmt), if (!compatible_calls_p (as_a <gcall *> (stmts[0]->stmt),
as_a <gcall *> (stmt))) as_a <gcall *> (stmt)))
......
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