From: Richard Biener Date: Fri, 25 Jul 2025 09:45:17 +0000 (+0200) Subject: Remove unused stmt_vectype X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2bb709a9cd580309016ed95b6e2abc9cb7a26e8;p=thirdparty%2Fgcc.git 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 --git a/gcc/target.h b/gcc/target.h index c9c7b52b40f..47f18469f23 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 82d5ddc7828..2d596b88dbe 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