* [PATCH] tree-optimization/98393 - properly init matches when failing SLP
@ 2021-01-04 11:13 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-01-04 11:13 UTC (permalink / raw)
To: gcc-patches
This zeroes matches when failing SLP discovery because of the
work limit.
Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed.
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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c
index f886d4d876c..2c2cf637e73 100644
--- 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;
--
2.26.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-04 11:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04 11:13 [PATCH] tree-optimization/98393 - properly init matches when failing SLP Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).