projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a40718b
)
tree-optimization/98393 - properly init matches when failing SLP
author
Richard Biener
<rguenther@suse.de>
Mon, 4 Jan 2021 10:22:24 +0000
(11:22 +0100)
committer
Richard Biener
<rguenther@suse.de>
Mon, 4 Jan 2021 11:13:44 +0000
(12:13 +0100)
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.
gcc/tree-vect-slp.c
patch
|
blob
|
history
diff --git
a/gcc/tree-vect-slp.c
b/gcc/tree-vect-slp.c
index f886d4d876c991c150b672a160917a4969f3e9d0..2c2cf637e734e2d79efec508248651fdc4dfcd87 100644
(file)
--- a/
gcc/tree-vect-slp.c
+++ b/
gcc/tree-vect-slp.c
@@
-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;