Message ID | 22f08c09-4076-969f-a9a0-88761b350086@codesourcery.com |
---|---|
State | New |
Headers | show |
Series | GCN: Silence unused-variable warning | expand |
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
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. */