summaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2018-07-31 14:26:35 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2018-07-31 14:26:35 +0000
commitdddecc5c01a0cdeb06704ed98eac881ead550664 (patch)
tree18b7586536f6434163556043f919584e73c921c4 /gcc/tree-vectorizer.c
parent6ef709e50228eb23c25d3620ac6eadb6d765d40d (diff)
[45/46] Remove vect_stmt_in_region_p
Unlike the old vinfo_for_stmt, vec_info::lookup_stmt can cope with any statement, so there's no need to check beforehand that the statement is part of the vectorisable region. This means that there are no longer any calls to vect_stmt_in_region_p. 2018-07-31 Richard Sandiford <richard.sandiford@arm.com> gcc/ * tree-vectorizer.h (vect_stmt_in_region_p): Delete. * tree-vectorizer.c (vect_stmt_in_region_p): Likewise. From-SVN: r263160
Diffstat (limited to 'gcc/tree-vectorizer.c')
-rw-r--r--gcc/tree-vectorizer.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c
index 579f43579be..44a0c4d1ce5 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. */