From: Richard Biener Date: Mon, 12 Oct 2020 07:31:16 +0000 (+0200) Subject: More consistently split SLP groups X-Git-Tag: upstream/12.2.0~13144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d42d1e223deaf866062e11bd51ee99441ad8871;p=platform%2Fupstream%2Fgcc.git More consistently split SLP groups This appropriately makes matches all true after successful SLP discovery to reliably succeed splitting. We were picking up an eventual all false built-up from scalars state in some cases. 2020-10-12 Richard Biener * tree-vect-slp.c (vect_analyze_slp_instance): Set matches to true after successful discovery but forced split. --- diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index 495fb97..dd2042a 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -2283,7 +2283,7 @@ vect_analyze_slp_instance (vec_info *vinfo, dump_printf_loc (MSG_NOTE, vect_location, "SLP discovery succeeded but node needs " "splitting\n"); - matches[0] = true; + memset (matches, true, group_size); matches[group_size / const_max_nunits * const_max_nunits] = false; vect_free_slp_tree (node); }