fix memory leaks
authorRichard Biener <rguenther@suse.de>
Tue, 2 Feb 2021 18:21:02 +0000 (19:21 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 2 Feb 2021 19:07:30 +0000 (20:07 +0100)
commit5d5130ad5c396bd2dcde766c0c994855b815355b
tree80e81b1783760c0d87e5b57cd9b2489d99b12728
parentdb53dd4f784d5d36c2119dd66a22ad40b5020b1c
fix memory leaks

This fixes various vec<> memory leaks as discovered compiling 521.wrf_r.

2021-02-02  Richard Biener  <rguenther@suse.de>

* gimple-loop-interchange.cc (prepare_data_references):
Release vectors.
* gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
* tree-ssa-loop-im.c (hoist_memory_references): Likewise.
* tree-vect-stmts.c (vectorizable_condition): Do not
allocate vectors.
(vectorizable_comparison): Likewise.
gcc/gimple-loop-interchange.cc
gcc/gimple-loop-jam.c
gcc/tree-ssa-loop-im.c
gcc/tree-vect-stmts.c