diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-vectorizer.c | 27 | ||||
-rw-r--r-- | gcc/tree-vectorizer.h | 1 |
3 files changed, 5 insertions, 28 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2a4979e..92bd5ba 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2018-07-31 Richard Sandiford <richard.sandiford@arm.com> + * tree-vectorizer.h (vect_stmt_in_region_p): Delete. + * tree-vectorizer.c (vect_stmt_in_region_p): Likewise. + +2018-07-31 Richard Sandiford <richard.sandiford@arm.com> + * tree-vectorizer.h (vec_info::new_vinfo_for_stmt) (vec_info::set_vinfo_for_stmt, vec_info::free_stmt_vec_infos) (vec_info::free_stmt_vec_info): New private member functions. diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index 579f435..44a0c4d 100644 --- a/gcc/tree-vectorizer.c +++ b/gcc/tree-vectorizer.c @@ -711,33 +711,6 @@ vect_free_loop_info_assumptions (struct loop *loop) loop_constraint_clear (loop, LOOP_C_FINITE); } -/* Return whether STMT is inside the region we try to vectorize. */ - -bool -vect_stmt_in_region_p (vec_info *vinfo, gimple *stmt) -{ - if (!gimple_bb (stmt)) - return false; - - if (loop_vec_info loop_vinfo = dyn_cast <loop_vec_info> (vinfo)) - { - struct loop *loop = LOOP_VINFO_LOOP (loop_vinfo); - if (!flow_bb_inside_loop_p (loop, gimple_bb (stmt))) - return false; - } - else - { - bb_vec_info bb_vinfo = as_a <bb_vec_info> (vinfo); - if (gimple_bb (stmt) != BB_VINFO_BB (bb_vinfo) - || gimple_uid (stmt) == -1U - || gimple_code (stmt) == GIMPLE_PHI) - return false; - } - - return true; -} - - /* If LOOP has been versioned during ifcvt, return the internal call guarding it. */ diff --git a/gcc/tree-vectorizer.h b/gcc/tree-vectorizer.h index d88ea2b..717d373 100644 --- a/gcc/tree-vectorizer.h +++ b/gcc/tree-vectorizer.h @@ -1628,7 +1628,6 @@ void vect_pattern_recog (vec_info *); /* In tree-vectorizer.c. */ unsigned vectorize_loops (void); -bool vect_stmt_in_region_p (vec_info *, gimple *); void vect_free_loop_info_assumptions (struct loop *); #endif /* GCC_TREE_VECTORIZER_H */ |