From: Tamar Christina Date: Wed, 10 Nov 2021 12:01:50 +0000 (+0000) Subject: vect: remove unused variable in complex numbers detection code. X-Git-Tag: basepoints/gcc-13~3203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cfa174e08e4964703387aa7de5ece448cc660b8;p=thirdparty%2Fgcc.git vect: remove unused variable in complex numbers detection code. This removed an unused variable that clang seems to catch when compiling GCC with Clang. gcc/ChangeLog: * tree-vect-slp-patterns.c (complex_mul_pattern::matches): Remove l1node. --- diff --git a/gcc/tree-vect-slp-patterns.c b/gcc/tree-vect-slp-patterns.c index e08a15ebd926..53fbe5185f54 100644 --- a/gcc/tree-vect-slp-patterns.c +++ b/gcc/tree-vect-slp-patterns.c @@ -946,7 +946,6 @@ complex_mul_pattern::matches (complex_operation_t op, auto childs = *ops; auto l0node = SLP_TREE_CHILDREN (childs[0]); - auto l1node = SLP_TREE_CHILDREN (childs[1]); bool mul0 = vect_match_expression_p (l0node[0], MULT_EXPR); bool mul1 = vect_match_expression_p (l0node[1], MULT_EXPR);