From: Martin Jambor Date: Tue, 24 Jun 2025 09:22:19 +0000 (+0200) Subject: Silence a clang warning in tree-vect-slp.cc about an unused variable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4d6292373b2d50e9f15b2e82ad61abf64105f7b;p=thirdparty%2Fgcc.git Silence a clang warning in tree-vect-slp.cc about an unused variable 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 * tree-vect-slp.cc (cond_expr_maps): Remove. --- diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc index 603dfc0d4b2..1a703a9bae4 100644 --- a/gcc/tree-vect-slp.cc +++ b/gcc/tree-vect-slp.cc @@ -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 };