From 108c1afce2b7b55375940b42e3779b76c6c24a1f Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 26 Oct 2001 00:49:34 -0700 Subject: cfg.c (clear_aux_for_blocks): Split out of ... * cfg.c (clear_aux_for_blocks): Split out of ... (free_aux_for_blocks): here. (clear_aux_for_edges): Split from ... (free_aux_for_edges): here. * basic-block.h: Declare them. * lcm.c (compute_antinout_edge): Use them. (compute_laterin, compute_available, compute_nearerout): Likewise. (optimize_mode_switching): Likewise. From-SVN: r46534 --- gcc/lcm.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/lcm.c') diff --git a/gcc/lcm.c b/gcc/lcm.c index 62572b8..4f5d692 100644 --- a/gcc/lcm.c +++ b/gcc/lcm.c @@ -177,6 +177,8 @@ compute_antinout_edge (antloc, transp, antin, antout) } } + clear_aux_for_edges (); + clear_aux_for_blocks (); free (worklist); } @@ -354,6 +356,7 @@ compute_laterin (edge_list, earliest, antloc, later, laterin) laterin[n_basic_blocks], later[(size_t) e->aux]); + clear_aux_for_edges (); free (worklist); } @@ -565,6 +568,8 @@ compute_available (avloc, kill, avout, avin) } } + clear_aux_for_edges (); + clear_aux_for_blocks (); free (worklist); } @@ -695,6 +700,7 @@ compute_nearerout (edge_list, farthest, st_avloc, nearer, nearerout) nearerout[n_basic_blocks], nearer[(size_t) e->aux]); + clear_aux_for_edges (); free (tos); } @@ -1273,6 +1279,7 @@ optimize_mode_switching (file) } } + clear_aux_for_edges (); free_edge_list (edge_list); } -- cgit v1.1