aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.cc
diff options
context:
space:
mode:
authorTamar Christina <tamar.christina@arm.com>2024-01-09 16:20:35 +0000
committerTamar Christina <tamar.christina@arm.com>2024-01-09 16:20:57 +0000
commit27194610d269d28f1800592e9c1fd39c2b51b809 (patch)
treea418f5a2306efa97e21ae43a01d608ebaca0bd86 /gcc/tree-vect-loop.cc
parente9f2c6d260e3f07b5144d175248e2c8788857c96 (diff)
downloadgcc-27194610d269d28f1800592e9c1fd39c2b51b809.zip
gcc-27194610d269d28f1800592e9c1fd39c2b51b809.tar.gz
gcc-27194610d269d28f1800592e9c1fd39c2b51b809.tar.bz2
middle-end: removed unused variable in vectorizable_live_operation_1
It looks like the previous patch had an unused variable. It's odd that my bootstrap didn't catch it (I'm assuming -Werror is still on for O3 bootstraps) but this fixes it. gcc/ChangeLog: * tree-vect-loop.cc (vectorizable_live_operation_1): Drop unused restart_loop. (vectorizable_live_operation): Likewise.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
-rw-r--r--gcc/tree-vect-loop.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc
index b50b5cf..c5b2799 100644
--- a/gcc/tree-vect-loop.cc
+++ b/gcc/tree-vect-loop.cc
@@ -10590,13 +10590,12 @@ vectorizable_induction (loop_vec_info loop_vinfo,
helper function for vectorizable_live_operation. */
-tree
+static tree
vectorizable_live_operation_1 (loop_vec_info loop_vinfo,
stmt_vec_info stmt_info, basic_block exit_bb,
tree vectype, int ncopies, slp_tree slp_node,
tree bitsize, tree bitstart, tree vec_lhs,
- tree lhs_type, bool restart_loop,
- gimple_stmt_iterator *exit_gsi)
+ tree lhs_type, gimple_stmt_iterator *exit_gsi)
{
gcc_assert (single_pred_p (exit_bb) || LOOP_VINFO_EARLY_BREAKS (loop_vinfo));
@@ -10612,7 +10611,7 @@ vectorizable_live_operation_1 (loop_vec_info loop_vinfo,
if (integer_zerop (bitstart))
{
tree scalar_res = gimple_build (&stmts, BIT_FIELD_REF, TREE_TYPE (vectype),
- vec_lhs_phi, bitsize, bitstart);
+ vec_lhs_phi, bitsize, bitstart);
/* Convert the extracted vector element to the scalar type. */
new_tree = gimple_convert (&stmts, lhs_type, scalar_res);
@@ -10973,8 +10972,7 @@ vectorizable_live_operation (vec_info *vinfo, stmt_vec_info stmt_info,
dest, vectype, ncopies,
slp_node, bitsize,
tmp_bitstart, tmp_vec_lhs,
- lhs_type, restart_loop,
- &exit_gsi);
+ lhs_type, &exit_gsi);
if (gimple_phi_num_args (use_stmt) == 1)
{