GCN: Silence unused-variable warning
Checks
Commit Message
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
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.
@@ -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. */