* [PATCH] Remove redundant alignment scheme recomputation
@ 2021-10-18 13:08 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-10-18 13:08 UTC (permalink / raw)
To: gcc-patches
The following avoids the recomputation of the alignment scheme
which is already fully determined by get_load_store_type.
Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed.
2021-10-18 Richard Biener <rguenther@suse.de>
* tree-vect-stmts.c (vectorizable_store): Do not recompute
alignment scheme already determined by get_load_store_type.
---
gcc/tree-vect-stmts.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c
index f5e1941f8ad..0e5e553ffe8 100644
--- a/gcc/tree-vect-stmts.c
+++ b/gcc/tree-vect-stmts.c
@@ -7904,14 +7904,6 @@ vectorizable_store (vec_info *vinfo,
auto_vec<tree> dr_chain (group_size);
oprnds.create (group_size);
- /* Gather-scatter accesses perform only component accesses, alignment
- is irrelevant for them. */
- if (memory_access_type == VMAT_GATHER_SCATTER)
- alignment_support_scheme = dr_unaligned_supported;
- else
- alignment_support_scheme
- = vect_supportable_dr_alignment (vinfo, first_dr_info, vectype, false);
-
gcc_assert (alignment_support_scheme);
vec_loop_masks *loop_masks
= (loop_vinfo && LOOP_VINFO_FULLY_MASKED_P (loop_vinfo)
--
2.31.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-18 13:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-18 13:08 [PATCH] Remove redundant alignment scheme recomputation Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).