mirror of git://gcc.gnu.org/git/gcc.git
tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
2017-06-02 Richard Biener <rguenther@suse.de> * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts. From-SVN: r248825
This commit is contained in:
parent
bd53b2574d
commit
9186a9d353
|
|
@ -1,3 +1,8 @@
|
||||||
|
2017-06-02 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
|
* tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
|
||||||
|
what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
|
||||||
|
|
||||||
2017-06-02 Richard Biener <rguenther@suse.de>
|
2017-06-02 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
PR tree-optimization/80948
|
PR tree-optimization/80948
|
||||||
|
|
|
||||||
|
|
@ -2245,9 +2245,16 @@ static tree
|
||||||
vect_detect_hybrid_slp_2 (gimple_stmt_iterator *gsi, bool *handled,
|
vect_detect_hybrid_slp_2 (gimple_stmt_iterator *gsi, bool *handled,
|
||||||
walk_stmt_info *)
|
walk_stmt_info *)
|
||||||
{
|
{
|
||||||
|
stmt_vec_info use_vinfo = vinfo_for_stmt (gsi_stmt (*gsi));
|
||||||
/* If the stmt is in a SLP instance then this isn't a reason
|
/* If the stmt is in a SLP instance then this isn't a reason
|
||||||
to mark use definitions in other SLP instances as hybrid. */
|
to mark use definitions in other SLP instances as hybrid. */
|
||||||
if (STMT_SLP_TYPE (vinfo_for_stmt (gsi_stmt (*gsi))) != loop_vect)
|
if (! STMT_SLP_TYPE (use_vinfo)
|
||||||
|
&& (STMT_VINFO_RELEVANT (use_vinfo)
|
||||||
|
|| VECTORIZABLE_CYCLE_DEF (STMT_VINFO_DEF_TYPE (use_vinfo)))
|
||||||
|
&& ! (gimple_code (gsi_stmt (*gsi)) == GIMPLE_PHI
|
||||||
|
&& STMT_VINFO_DEF_TYPE (use_vinfo) == vect_reduction_def))
|
||||||
|
;
|
||||||
|
else
|
||||||
*handled = true;
|
*handled = true;
|
||||||
return NULL_TREE;
|
return NULL_TREE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue