tree-optimization/98393 - properly init matches when failing SLP
This zeroes matches when failing SLP discovery because of the work limit. 2021-01-04 Richard Biener <rguenther@suse.de> PR tree-optimization/98393 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches when hitting the limit.
This commit is contained in:
parent
a40718b5fc
commit
0926259f9f
1 changed files with 1 additions and 0 deletions
|
@ -1429,6 +1429,7 @@ vect_build_slp_tree (vec_info *vinfo,
|
|||
SLP_TREE_SCALAR_STMTS (res) = vNULL;
|
||||
SLP_TREE_DEF_TYPE (res) = vect_uninitialized_def;
|
||||
vect_free_slp_tree (res);
|
||||
memset (matches, 0, sizeof (bool) * group_size);
|
||||
return NULL;
|
||||
}
|
||||
--*limit;
|
||||
|
|
Loading…
Add table
Reference in a new issue