diff mbox series

[committed] middle-end vect: remove unused variable in complex numbers detection code.

Message ID patch-15051-tamar@arm.com
State New
Headers show
Series [committed] middle-end vect: remove unused variable in complex numbers detection code. | expand

Commit Message

Tamar Christina Nov. 10, 2021, 11:54 a.m. UTC
Hi All,

This removed an unused variable that clang seems to catch when
compiling GCC with Clang.

Bootstrapped Regtested on aarch64-none-linux-gnu and no issues.

Committed under the obvious rule.

Thanks,
Tamar

gcc/ChangeLog:

	* tree-vect-slp-patterns.c (complex_mul_pattern::matches): Remove l1node.

--- inline copy of patch -- 
diff --git a/gcc/tree-vect-slp-patterns.c b/gcc/tree-vect-slp-patterns.c
index e08a15ebd92638ca32171b361412ec33f0116367..53fbe5185f543298b27d084a93c30a1c161d3d32 100644


--
diff mbox series

Patch

diff --git a/gcc/tree-vect-slp-patterns.c b/gcc/tree-vect-slp-patterns.c
index e08a15ebd92638ca32171b361412ec33f0116367..53fbe5185f543298b27d084a93c30a1c161d3d32 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);