https://gcc.gnu.org/g:c2bb709a9cd580309016ed95b6e2abc9cb7a26e8

commit r16-2512-gc2bb709a9cd580309016ed95b6e2abc9cb7a26e8
Author: Richard Biener <rguent...@suse.de>
Date:   Fri Jul 25 11:45:17 2025 +0200

    Remove unused stmt_vectype
    
    The following removes an unused accessor to data that should go away.
    
            * target.h (stmt_vectype): Remove.
            * tree-vect-stmts.cc (stmt_vectype): Likewise.

Diff:
---
 gcc/target.h           | 1 -
 gcc/tree-vect-stmts.cc | 8 --------
 2 files changed, 9 deletions(-)

diff --git a/gcc/target.h b/gcc/target.h
index c9c7b52b40f6..47f18469f238 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -169,7 +169,6 @@ class predefined_function_abi;
 struct store_fwd_info;
 
 /* These are defined in tree-vect-stmts.cc.  */
-extern tree stmt_vectype (class _stmt_vec_info *);
 extern bool stmt_in_inner_loop_p (class vec_info *, class _stmt_vec_info *);
 
 /* Assembler instructions for creating various kinds of integer object.  */
diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc
index 82d5ddc78284..2d596b88dbec 100644
--- a/gcc/tree-vect-stmts.cc
+++ b/gcc/tree-vect-stmts.cc
@@ -62,14 +62,6 @@ along with GCC; see the file COPYING3.  If not see
 /* For lang_hooks.types.type_for_mode.  */
 #include "langhooks.h"
 
-/* Return the vectorized type for the given statement.  */
-
-tree
-stmt_vectype (class _stmt_vec_info *stmt_info)
-{
-  return STMT_VINFO_VECTYPE (stmt_info);
-}
-
 /* Return TRUE iff the given statement is in an inner loop relative to
    the loop being vectorized.  */
 bool

Reply via email to