From def6dcd75ceb11971c88266578629356b5386929 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 12 Dec 2004 01:11:34 +0000 Subject: [PATCH] lcm.c (optimize_mode_switching): Free insert and delete in the "for" loop. * lcm.c (optimize_mode_switching): Free insert and delete in the "for" loop. From-SVN: r92042 --- gcc/ChangeLog | 5 +++++ gcc/lcm.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d4f8a76cc45..c828107acf0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-12-12 Kazu Hirata + + * lcm.c (optimize_mode_switching): Free insert and delete in + the "for" loop. + 2004-12-11 David Edelsohn Ulrich Weigand 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 (); -- 2.30.2