]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix some memory leaks
authorRichard Biener <rguenther@suse.de>
Fri, 10 Jan 2025 14:17:58 +0000 (15:17 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 10 Jan 2025 15:46:42 +0000 (16:46 +0100)
commit9193641d1695293006ed0b818bb4161a1b6fbed2
treeeacc0f6305b8748f11e7e542cf312b3fc4067b07
parent94d8de53388793f4d5fc0d0aa00fef32ca4aa870
Fix some memory leaks

The following fixes memory leaks found compiling SPEC CPU 2017 with
valgrind.

* df-core.cc (rest_of_handle_df_finish): Release dflow for
problems without free function (like LR).
* gimple-crc-optimization.cc (crc_optimization::loop_may_calculate_crc):
Release loop_bbs on all exits.
* tree-vectorizer.h (supportable_indirect_convert_operation): Change.
* tree-vect-generic.cc (expand_vector_conversion): Adjust.
* tree-vect-stmts.cc (vectorizable_conversion): Use auto_vec for
converts.
(supportable_indirect_convert_operation): Get a reference to
the output vector of converts.
gcc/df-core.cc
gcc/gimple-crc-optimization.cc
gcc/tree-vect-generic.cc
gcc/tree-vect-stmts.cc
gcc/tree-vectorizer.h