]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove unused stmt_vectype
authorRichard Biener <rguenther@suse.de>
Fri, 25 Jul 2025 09:45:17 +0000 (11:45 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 25 Jul 2025 12:20:22 +0000 (14:20 +0200)
The following removes an unused accessor to data that should go away.

* target.h (stmt_vectype): Remove.
* tree-vect-stmts.cc (stmt_vectype): Likewise.

gcc/target.h
gcc/tree-vect-stmts.cc

index c9c7b52b40f6125f05d38a986c1cfad133c2c5d9..47f18469f238c7daf95eba3287d0e20bfd767a29 100644 (file)
@@ -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.  */
index 82d5ddc782842f2f016016303adf99aecb0ca9d4..2d596b88dbec7078ff75ae8d0e99e6acc45bb840 100644 (file)
@@ -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