random memory leak fixes
authorRichard Biener <rguenther@suse.de>
Fri, 9 Oct 2020 07:47:44 +0000 (09:47 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 9 Oct 2020 08:40:44 +0000 (10:40 +0200)
commita0e6e49ddedb05e2e112e5c19a2228efd016e871
tree433873f0738d7aea6c32fbb8b1847b35c4afdd98
parent781634daea8cb788efb33994f4a19df76598542e
random memory leak fixes

This fixes leaks discovered checking whether I introduced new ones
with the last vectorizer changes.

2020-10-09  Richard Biener  <rguenther@suse.de>

* cgraphunit.c (expand_all_functions): Free tp_first_run_order.
* ipa-modref.c (pass_ipa_modref::execute): Free order.
* tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Free
loop body.
* tree-vect-data-refs.c (vect_find_stmt_data_reference): Free
data references upon failure.
* tree-vect-loop.c (update_epilogue_loop_vinfo): Free BBs
array of the original loop.
* tree-vect-slp.c (vect_slp_bbs): Use an auto_vec for
dataref_groups to release its memory.
gcc/cgraphunit.c
gcc/ipa-modref.c
gcc/tree-ssa-loop-niter.c
gcc/tree-vect-data-refs.c
gcc/tree-vect-loop.c
gcc/tree-vect-slp.c