fix vectorizer memleaks
authorRichard Biener <rguenther@suse.de>
Fri, 8 Jan 2021 13:22:00 +0000 (14:22 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 8 Jan 2021 13:23:44 +0000 (14:23 +0100)
commitb407f233d7c18534fbfe8f74af7f0232498fb0c4
treee18dcf9fcaefaf8191d9d16d23655d326cb82e73
parentbdcde1504502719504a7a63ab10059e171694dc2
fix vectorizer memleaks

This plugs two memleaks in the vectorizer.

2021-01-08  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
(vect_build_slp_tree): On cache hit release the matched
scalar stmts vector.
* tree-vect-stmts.c (vectorizable_store): Properly free
vec_oprnds before possibly gathering them again.
gcc/tree-vect-slp.c
gcc/tree-vect-stmts.c