diff options
author | Richard Biener <rguenther@suse.de> | 2025-07-25 09:04:49 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2025-07-25 12:39:17 +0200 |
commit | fab1cd65070d9374cda161a881c4f2f9be38ee8a (patch) | |
tree | 90f0d7249557f272c7d6b64f33b67d8cbc49afe0 /gcc | |
parent | 02213d07210c22fb4408b1b35b6b4261ce7d466d (diff) | |
download | gcc-fab1cd65070d9374cda161a881c4f2f9be38ee8a.zip gcc-fab1cd65070d9374cda161a881c4f2f9be38ee8a.tar.gz gcc-fab1cd65070d9374cda161a881c4f2f9be38ee8a.tar.bz2 |
Remove dead code from vectorizable_store
There's dead code in the else block of a if (!costing_p) block,
after trivial pruning only setting of 'op' remains but that has
no further uses downstream. I found this looking for remaining
(must-be-dead) uses of vect_get_vec_defs_for_operand.
* tree-vect-stmts.cc (vectorizable_store): Remove trivially
dead code.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree-vect-stmts.cc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index 26a0850..26cd19c 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -9069,39 +9069,6 @@ vectorizable_store (vec_info *vinfo, if (mask) vec_mask = vec_masks[0]; } - else - { - /* For interleaved stores we collect vectorized defs for all the - stores in the group in DR_CHAIN. DR_CHAIN is then used as an - input to vect_permute_store_chain(). - - If the store is not grouped, DR_GROUP_SIZE is 1, and DR_CHAIN - is of size 1. */ - stmt_vec_info next_stmt_info = first_stmt_info; - for (i = 0; i < group_size; i++) - { - /* Since gaps are not supported for interleaved stores, - DR_GROUP_SIZE is the exact number of stmts in the chain. - Therefore, NEXT_STMT_INFO can't be NULL_TREE. In case - that there is no interleaving, DR_GROUP_SIZE is 1, - and only one iteration of the loop will be executed. */ - op = vect_get_store_rhs (next_stmt_info); - if (!costing_p) - { - vect_get_vec_defs_for_operand (vinfo, next_stmt_info, - 1, op, gvec_oprnds[i]); - vec_oprnd = (*gvec_oprnds[i])[0]; - dr_chain.quick_push (vec_oprnd); - } - next_stmt_info = DR_GROUP_NEXT_ELEMENT (next_stmt_info); - } - if (mask && !costing_p) - { - vect_get_vec_defs_for_operand (vinfo, stmt_info, 1, - mask, &vec_masks, mask_vectype); - vec_mask = vec_masks[0]; - } - } /* We should have catched mismatched types earlier. */ gcc_assert (costing_p |