[45/46] Remove vect_stmt_in_region_p
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 31 Jul 2018 14:26:35 +0000 (14:26 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 31 Jul 2018 14:26:35 +0000 (14:26 +0000)
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

gcc/ChangeLog
gcc/tree-vectorizer.c
gcc/tree-vectorizer.h

index 2a4979e043265b61ecab390ee766f1e70c0f597f..92bd5ba1a0f93640d9515a0bc1ff655106ce387d 100644 (file)
@@ -1,3 +1,8 @@
+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)
index 579f43579be8e97efaaea24ebd7335d6dc396f8a..44a0c4d1ce5d86bbdf4707b79ad76bc0743f0114 100644 (file)
@@ -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.  */
 
index d88ea2be0459bc468c7c3294ac7dfbbfb525a190..717d3733d2e7221ddc396cd7f2e93dd505648212 100644 (file)
@@ -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  */