diff mbox series

GCN: Silence unused-variable warning

Message ID 22f08c09-4076-969f-a9a0-88761b350086@codesourcery.com
State New
Headers show
Series GCN: Silence unused-variable warning | expand

Commit Message

Tobias Burnus May 5, 2023, 11:10 a.m. UTC
Probably added for symmetry with out_mode/out_n but at the end not used.
That function was added in commit
   r13-6423-gce9cd7258d0 amdgcn: Enable SIMD vectorization of math functions

Tested the removal by building with that patch applied.
OK for mainline?

Tobias
-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955

Comments

Andrew Stubbs May 5, 2023, 11:18 a.m. UTC | #1
On 05/05/2023 12:10, Tobias Burnus wrote:
> Probably added for symmetry with out_mode/out_n but at the end not used.
> That function was added in commit
>    r13-6423-gce9cd7258d0 amdgcn: Enable SIMD vectorization of math 
> functions
> 
> Tested the removal by building with that patch applied.
> OK for mainline?

OK.

Andrew
diff mbox series

Patch

GCN: Silence unused-variable warning

gcc/ChangeLog:

	* config/gcn/gcn.cc (gcn_vectorize_builtin_vectorized_function): Remove
	unused in_mode/in_n variables.

diff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc
index 5608d85a1a0..7bb71392c4c 100644
--- a/gcc/config/gcn/gcn.cc
+++ b/gcc/config/gcn/gcn.cc
@@ -5361,8 +5361,6 @@  gcn_vectorize_builtin_vectorized_function (unsigned int fn, tree type_out,
 
   machine_mode out_mode = TYPE_MODE (TREE_TYPE (type_out));
   int out_n = TYPE_VECTOR_SUBPARTS (type_out);
-  machine_mode in_mode = TYPE_MODE (TREE_TYPE (type_in));
-  int in_n = TYPE_VECTOR_SUBPARTS (type_in);
   combined_fn cfn = combined_fn (fn);
 
   /* Keep this consistent with the list of vectorized math routines.  */