aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-parloops.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-05-30 13:21:44 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-05-30 13:21:44 +0000
commit1a58f770e487e94227fc75a42eee385d86b7bee9 (patch)
tree4e4f65b56f2fb31fbf9f45cfc35923077d3fce2c /gcc/tree-parloops.c
parent5b2edf5314c7c8d69f2e38c1ce5aaf381a230b96 (diff)
downloadgcc-1a58f770e487e94227fc75a42eee385d86b7bee9.zip
gcc-1a58f770e487e94227fc75a42eee385d86b7bee9.tar.gz
gcc-1a58f770e487e94227fc75a42eee385d86b7bee9.tar.bz2
tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type and reduc_def fields.
2017-05-30 Richard Biener <rguenther@suse.de> * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type and reduc_def fields. (STMT_VINFO_REDUC_TYPE): New define. (STMT_VINFO_REDUC_DEF): Likewise. (vect_force_simple_reduction): Adjust prototype. * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust. (vect_is_simple_reduction): Remove check_reduction argument. (vect_force_simple_reduction): Adjust and set STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF. (vectorizable_reduction): Do not re-do reduction analysis but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF. * tree-parloops.c (gather_scalar_reductions): Adjust. From-SVN: r248685
Diffstat (limited to 'gcc/tree-parloops.c')
-rw-r--r--gcc/tree-parloops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c
index 83d3c80..641f675 100644
--- a/gcc/tree-parloops.c
+++ b/gcc/tree-parloops.c
@@ -2543,7 +2543,7 @@ gather_scalar_reductions (loop_p loop, reduction_info_table_type *reduction_list
continue;
gimple *reduc_stmt
- = vect_force_simple_reduction (simple_loop_info, phi, true,
+ = vect_force_simple_reduction (simple_loop_info, phi,
&double_reduc, true);
if (!reduc_stmt)
continue;
@@ -2589,7 +2589,7 @@ gather_scalar_reductions (loop_p loop, reduction_info_table_type *reduction_list
gimple *inner_reduc_stmt
= vect_force_simple_reduction (simple_loop_info, inner_phi,
- true, &double_reduc, true);
+ &double_reduc, true);
gcc_assert (!double_reduc);
if (inner_reduc_stmt == NULL)
continue;