Skip to content

Commit 6d42d1e

Browse files
committed
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 <[email protected]> * tree-vect-slp.c (vect_analyze_slp_instance): Set matches to true after successful discovery but forced split.
1 parent 63ad600 commit 6d42d1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/tree-vect-slp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2283,7 +2283,7 @@ vect_analyze_slp_instance (vec_info *vinfo,
22832283
dump_printf_loc (MSG_NOTE, vect_location,
22842284
"SLP discovery succeeded but node needs "
22852285
"splitting\n");
2286-
matches[0] = true;
2286+
memset (matches, true, group_size);
22872287
matches[group_size / const_max_nunits * const_max_nunits] = false;
22882288
vect_free_slp_tree (node);
22892289
}

0 commit comments

Comments
 (0)