aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-01-04 11:22:24 +0100
committerRichard Biener <rguenther@suse.de>2021-01-04 12:13:44 +0100
commit0926259f9fc21a7f1e09f45f8aede156ef249585 (patch)
tree156be65230edd3d40810884c4e0e940ce09b0710
parenta40718b5fc8bd698bdf48fc3f6187ac9eb615f35 (diff)
downloadgcc-0926259f9fc21a7f1e09f45f8aede156ef249585.zip
gcc-0926259f9fc21a7f1e09f45f8aede156ef249585.tar.gz
gcc-0926259f9fc21a7f1e09f45f8aede156ef249585.tar.bz2
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.
-rw-r--r--gcc/tree-vect-slp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c
index f886d4d..2c2cf63 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;