diff options
author | Richard Biener <rguenther@suse.de> | 2017-06-02 13:11:11 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2017-06-02 13:11:11 +0000 |
commit | 9186a9d353815352d9625fc765dd0449fb64d8a9 (patch) | |
tree | 89a6dc145266d08ca66847b3acdc6faa3ac7a86e /gcc | |
parent | bd53b2574d0326d23e0dde6eb5e31bf4e952ccf1 (diff) | |
download | gcc-9186a9d353815352d9625fc765dd0449fb64d8a9.zip gcc-9186a9d353815352d9625fc765dd0449fb64d8a9.tar.gz gcc-9186a9d353815352d9625fc765dd0449fb64d8a9.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-vect-slp.c | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 499e6bb..4f861e1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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> + PR tree-optimization/80948 * tree-tailcall.c (find_tail_calls): Track stmts to move in stmt order as well. diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index d221fc6..31194b8 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -2245,9 +2245,16 @@ static tree vect_detect_hybrid_slp_2 (gimple_stmt_iterator *gsi, bool *handled, 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 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; return NULL_TREE; } |