From: Richard Biener Date: Fri, 20 Mar 2020 14:00:11 +0000 (+0100) Subject: fix CTOR vectorization X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d42842c07f4143042f3dcc39a050b262bcf1b55;p=gcc.git fix CTOR vectorization We failed to handle pattern stmts appropriately. 2020-03-20 Richard Biener * tree-vect-slp.c (vect_analyze_slp_instance): Push the stmts to vectorize for CTOR defs. --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ab8d421c822..362345516b8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-03-20 Richard Biener + + * tree-vect-slp.c (vect_analyze_slp_instance): Push the stmts + to vectorize for CTOR defs. + 2020-03-20 Srinath Parvathaneni Andre Vieira Mihail Ionescu diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index 9d17e3386fa..fb13af7965e 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -2257,6 +2257,7 @@ vect_analyze_slp_instance (vec_info *vinfo, /* Value is defined in another basic block. */ if (!def_info) return false; + def_info = vect_stmt_to_vectorize (def_info); scalar_stmts.safe_push (def_info); } else