Commit 7cadcdc1 by Richard Biener Committed by Richard Biener

re PR tree-optimization/62075 (Vectorizer ICE on dolphin)

2014-08-11  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/62075
	* tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
	handle uses in patterns.

	* gcc.dg/vect/pr62075.c: New testcase.

From-SVN: r213815
parent f4af595f
2014-08-11 Richard Biener <rguenther@suse.de>
PR tree-optimization/62075
* tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
handle uses in patterns.
2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
Maxim Kuznetsov <maxim.kuznetsov@intel.com>
Anna Tikhonova <anna.tikhonova@intel.com>
......
2014-08-11 Richard Biener <rguenther@suse.de>
PR tree-optimization/62075
* gcc.dg/vect/pr62075.c: New testcase.
2014-08-11 Felix Yang <fei.yang0953@gmail.com>
PR tree-optimization/62073
......
/* { dg-do compile } */
int a[16][2];
struct A
{
int b[16][2];
int c[16][1];
};
void
foo (struct A *x)
{
int i;
for (i = 0; i < 16; ++i)
{
x->b[i][0] = a[i][0];
x->c[i][0] = 0 != a[i][0];
x->b[i][1] = a[i][1];
}
}
/* { dg-final { cleanup-tree-dump "vect" } } */
......@@ -1793,7 +1793,10 @@ vect_detect_hybrid_slp_stmts (slp_tree node)
&& (stmt_vinfo = vinfo_for_stmt (use_stmt))
&& !STMT_SLP_TYPE (stmt_vinfo)
&& (STMT_VINFO_RELEVANT (stmt_vinfo)
|| VECTORIZABLE_CYCLE_DEF (STMT_VINFO_DEF_TYPE (stmt_vinfo)))
|| VECTORIZABLE_CYCLE_DEF (STMT_VINFO_DEF_TYPE (stmt_vinfo))
|| (STMT_VINFO_IN_PATTERN_P (stmt_vinfo)
&& STMT_VINFO_RELATED_STMT (stmt_vinfo)
&& !STMT_SLP_TYPE (vinfo_for_stmt (STMT_VINFO_RELATED_STMT (stmt_vinfo)))))
&& !(gimple_code (use_stmt) == GIMPLE_PHI
&& STMT_VINFO_DEF_TYPE (stmt_vinfo)
== vect_reduction_def))
......
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