vect: remove unused variable in complex numbers detection code.
authorTamar Christina <tamar.christina@arm.com>
Wed, 10 Nov 2021 12:01:50 +0000 (12:01 +0000)
committerTamar Christina <tamar.christina@arm.com>
Wed, 10 Nov 2021 12:05:49 +0000 (12:05 +0000)
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.

gcc/tree-vect-slp-patterns.c

index e08a15e..53fbe51 100644 (file)
@@ -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);