From: Richard Biener Date: Mon, 18 Oct 2021 11:26:10 +0000 (+0200) Subject: Remove redundant alignment scheme recomputation X-Git-Tag: basepoints/gcc-13~3834 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0ea7a8409aa4afd0b0fd874b232766a758c0bc6;p=thirdparty%2Fgcc.git Remove redundant alignment scheme recomputation The following avoids the recomputation of the alignment scheme which is already fully determined by get_load_store_type. 2021-10-18 Richard Biener * tree-vect-stmts.c (vectorizable_store): Do not recompute alignment scheme already determined by get_load_store_type. --- diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index f5e1941f8ad3..0e5e553ffe89 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -7904,14 +7904,6 @@ vectorizable_store (vec_info *vinfo, auto_vec 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)