diff options
author | Jan Hubicka <jh@suse.cz> | 2020-11-25 15:05:41 +0100 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2020-11-25 15:05:41 +0100 |
commit | 45281f120da85e0513cb5daa793112a37157ee70 (patch) | |
tree | f0bf8486919c0838124452269034eed4916b71ce /gcc/cgraph.c | |
parent | fddc7f0080f1f056c4d145451608ebd3e807422a (diff) | |
download | gcc-45281f120da85e0513cb5daa793112a37157ee70.zip gcc-45281f120da85e0513cb5daa793112a37157ee70.tar.gz gcc-45281f120da85e0513cb5daa793112a37157ee70.tar.bz2 |
Free more of CFG
* cfg.c (free_block): New function.
(clear_edges): Rename to ....
(free_cfg): ... this one; also free BBs and vectors.
(expunge_block): Update comment.
* cfg.h (clear_edges): Rename to ...
(free_cfg): ... this one.
* cgraph.c (release_function_body): Use free_cfg.
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 19dfe2b..dbde8aa 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -1811,7 +1811,7 @@ release_function_body (tree decl) gcc_assert (!dom_info_available_p (fn, CDI_DOMINATORS)); gcc_assert (!dom_info_available_p (fn, CDI_POST_DOMINATORS)); delete_tree_cfg_annotations (fn); - clear_edges (fn); + free_cfg (fn); fn->cfg = NULL; } if (fn->value_histograms) |