When compiling tree-vect-stmts.cc with clang, it emits a warning:
gcc/tree-vect-stmts.cc:14930:19: warning: unused variable 'mode_iter' [-Wunused-variable]
And indeed, there are two mode_iter local variables in function
supportable_indirect_convert_operation and the first one is not used
at all. This patch removes it.
gcc/ChangeLog:
2025-06-24 Martin Jambor <mjambor@suse.cz>
* tree-vect-stmts.cc (supportable_indirect_convert_operation):
Remove an unused shadowed variable.
bool found_mode = false;
scalar_mode lhs_mode = GET_MODE_INNER (TYPE_MODE (vectype_out));
scalar_mode rhs_mode = GET_MODE_INNER (TYPE_MODE (vectype_in));
- opt_scalar_mode mode_iter;
tree_code tc1, tc2, code1, code2;
tree cvt_type = NULL_TREE;