Commit def6dcd7 by Kazu Hirata Committed by Kazu Hirata

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
parent 6ee42e01
2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
* lcm.c (optimize_mode_switching): Free insert and delete in
the "for" loop.
2004-12-11 David Edelsohn <edelsohn@gnu.org> 2004-12-11 David Edelsohn <edelsohn@gnu.org>
Ulrich Weigand <uweigand@de.ibm.com> Ulrich Weigand <uweigand@de.ibm.com>
......
...@@ -858,8 +858,6 @@ struct bb_info ...@@ -858,8 +858,6 @@ struct bb_info
static sbitmap *antic; static sbitmap *antic;
static sbitmap *transp; static sbitmap *transp;
static sbitmap *comp; static sbitmap *comp;
static sbitmap *delete;
static sbitmap *insert;
static struct seginfo * new_seginfo (int, rtx, int, HARD_REG_SET); static struct seginfo * new_seginfo (int, rtx, int, HARD_REG_SET);
static void add_seginfo (struct bb_info *, struct seginfo *); static void add_seginfo (struct bb_info *, struct seginfo *);
...@@ -1138,6 +1136,8 @@ optimize_mode_switching (FILE *file) ...@@ -1138,6 +1136,8 @@ optimize_mode_switching (FILE *file)
for (i = 0; i < max_num_modes; i++) for (i = 0; i < max_num_modes; i++)
{ {
int current_mode[N_ENTITIES]; int current_mode[N_ENTITIES];
sbitmap *delete;
sbitmap *insert;
/* Set the anticipatable and computing arrays. */ /* Set the anticipatable and computing arrays. */
sbitmap_vector_zero (antic, last_basic_block); sbitmap_vector_zero (antic, last_basic_block);
...@@ -1248,6 +1248,8 @@ optimize_mode_switching (FILE *file) ...@@ -1248,6 +1248,8 @@ optimize_mode_switching (FILE *file)
} }
} }
sbitmap_vector_free (delete);
sbitmap_vector_free (insert);
clear_aux_for_edges (); clear_aux_for_edges ();
free_edge_list (edge_list); free_edge_list (edge_list);
} }
...@@ -1298,8 +1300,6 @@ optimize_mode_switching (FILE *file) ...@@ -1298,8 +1300,6 @@ optimize_mode_switching (FILE *file)
sbitmap_vector_free (antic); sbitmap_vector_free (antic);
sbitmap_vector_free (transp); sbitmap_vector_free (transp);
sbitmap_vector_free (comp); sbitmap_vector_free (comp);
sbitmap_vector_free (delete);
sbitmap_vector_free (insert);
if (need_commit) if (need_commit)
commit_edge_insertions (); commit_edge_insertions ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment