From: Richard Biener Date: Fri, 17 Sep 2021 10:35:36 +0000 (+0200) Subject: Use the proper vectype X-Git-Tag: basepoints/gcc-13~4629 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47ee6e6fb99889325835eab87c995db23647c77b;p=thirdparty%2Fgcc.git Use the proper vectype The following uses the SLP node vectype rather than the vectype stored in the DR group. 2021-09-17 Richard Biener * tree-vect-stmts.c (vectorizable_load): Use the vectype from the SLP node. --- diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index ce79d883dbf8..17849b575b77 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -8650,7 +8650,7 @@ vectorizable_load (vec_info *vinfo, FOR_EACH_VEC_ELT (SLP_TREE_LOAD_PERMUTATION (slp_node), j, k) if (k > maxk) maxk = k; - tree vectype = STMT_VINFO_VECTYPE (group_info); + tree vectype = SLP_TREE_VECTYPE (slp_node); if (!TYPE_VECTOR_SUBPARTS (vectype).is_constant (&nunits) || maxk >= (DR_GROUP_SIZE (group_info) & ~(nunits - 1))) {