aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-09-17 12:35:36 +0200
committerRichard Biener <rguenther@suse.de>2021-09-20 12:30:49 +0200
commit47ee6e6fb99889325835eab87c995db23647c77b (patch)
treec42d2517d9598315100b8cd659858c5fb8fd01ae
parent0de4184baca19cdd4ebc2d8aa2d538330cae51ee (diff)
downloadgcc-47ee6e6fb99889325835eab87c995db23647c77b.zip
gcc-47ee6e6fb99889325835eab87c995db23647c77b.tar.gz
gcc-47ee6e6fb99889325835eab87c995db23647c77b.tar.bz2
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 <rguenther@suse.de> * tree-vect-stmts.c (vectorizable_load): Use the vectype from the SLP node.
-rw-r--r--gcc/tree-vect-stmts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c
index ce79d88..17849b5 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)))
{