]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Silence a clang warning in tree-vect-slp.cc about an unused variable
authorMartin Jambor <mjambor@suse.cz>
Tue, 24 Jun 2025 09:22:19 +0000 (11:22 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Thu, 26 Jun 2025 09:27:35 +0000 (11:27 +0200)
Since r15-4695-gd17e672ce82e69 (Richard Biener: Assert finished
vectorizer pattern COND_EXPR transition), the static const array
cond_expr_maps is unused and when GCC is compiled with clang, it warns
about that.

This patch simply removes the variable.

gcc/ChangeLog:

2025-06-24  Martin Jambor  <mjambor@suse.cz>

* tree-vect-slp.cc (cond_expr_maps): Remove.

gcc/tree-vect-slp.cc

index 603dfc0d4b2dba9418dd11f98b03322f7e1b400e..1a703a9bae4adcbb761215a8e062ec7f75b6833e 100644 (file)
@@ -507,11 +507,6 @@ vect_def_types_match (enum vect_def_type dta, enum vect_def_type dtb)
              && (dtb == vect_external_def || dtb == vect_constant_def)));
 }
 
-static const int cond_expr_maps[3][5] = {
-  { 4, -1, -2, 1, 2 },
-  { 4, -2, -1, 1, 2 },
-  { 4, -1, -2, 2, 1 }
-};
 static const int no_arg_map[] = { 0 };
 static const int arg0_map[] = { 1, 0 };
 static const int arg1_map[] = { 1, 1 };