diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-12 01:11:34 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-12 01:11:34 +0000 |
commit | 5a8ae6ebfced56e4afdc3703808639e95c933d3a (patch) | |
tree | 213b7836abfbea09cd94c563140a2b9dac3d83eb /gcc/lcm.c | |
parent | c79f8fa48f04ce47be62aa79e8b980bc791439f6 (diff) | |
download | gcc-5a8ae6ebfced56e4afdc3703808639e95c933d3a.tar.gz |
* lcm.c (optimize_mode_switching): Free insert and delete in
the "for" loop.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92042 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lcm.c')
-rw-r--r-- | gcc/lcm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/lcm.c b/gcc/lcm.c index b568b06b99b..2c4f3fad847 100644 --- a/gcc/lcm.c +++ b/gcc/lcm.c @@ -858,8 +858,6 @@ struct bb_info static sbitmap *antic; static sbitmap *transp; static sbitmap *comp; -static sbitmap *delete; -static sbitmap *insert; static struct seginfo * new_seginfo (int, rtx, int, HARD_REG_SET); static void add_seginfo (struct bb_info *, struct seginfo *); @@ -1138,6 +1136,8 @@ optimize_mode_switching (FILE *file) for (i = 0; i < max_num_modes; i++) { int current_mode[N_ENTITIES]; + sbitmap *delete; + sbitmap *insert; /* Set the anticipatable and computing arrays. */ sbitmap_vector_zero (antic, last_basic_block); @@ -1248,6 +1248,8 @@ optimize_mode_switching (FILE *file) } } + sbitmap_vector_free (delete); + sbitmap_vector_free (insert); clear_aux_for_edges (); free_edge_list (edge_list); } @@ -1298,8 +1300,6 @@ optimize_mode_switching (FILE *file) sbitmap_vector_free (antic); sbitmap_vector_free (transp); sbitmap_vector_free (comp); - sbitmap_vector_free (delete); - sbitmap_vector_free (insert); if (need_commit) commit_edge_insertions (); |