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

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

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


--
  

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);