From b0ea7a8409aa4afd0b0fd874b232766a758c0bc6 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 18 Oct 2021 13:26:10 +0200 Subject: [PATCH] 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. --- 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 f5e1941..0e5e553 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) -- 2.7.4