diff options
Diffstat (limited to 'gcc/tree-ssa-live.c')
-rw-r--r-- | gcc/tree-ssa-live.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c index 15c8b482082..13cd843e951 100644 --- a/gcc/tree-ssa-live.c +++ b/gcc/tree-ssa-live.c @@ -439,11 +439,11 @@ new_tree_live_info (var_map map) live->map = map; live->num_blocks = last_basic_block; - live->global = BITMAP_XMALLOC (); + live->global = BITMAP_ALLOC (NULL); live->livein = (bitmap *)xmalloc (num_var_partitions (map) * sizeof (bitmap)); for (x = 0; x < num_var_partitions (map); x++) - live->livein[x] = BITMAP_XMALLOC (); + live->livein[x] = BITMAP_ALLOC (NULL); /* liveout is deferred until it is actually requested. */ live->liveout = NULL; @@ -460,17 +460,17 @@ delete_tree_live_info (tree_live_info_p live) if (live->liveout) { for (x = live->num_blocks - 1; x >= 0; x--) - BITMAP_XFREE (live->liveout[x]); + BITMAP_FREE (live->liveout[x]); free (live->liveout); } if (live->livein) { for (x = num_var_partitions (live->map) - 1; x >= 0; x--) - BITMAP_XFREE (live->livein[x]); + BITMAP_FREE (live->livein[x]); free (live->livein); } if (live->global) - BITMAP_XFREE (live->global); + BITMAP_FREE (live->global); free (live); } @@ -573,7 +573,7 @@ calculate_live_on_entry (var_map map) edge_iterator ei; #endif - saw_def = BITMAP_XMALLOC (); + saw_def = BITMAP_ALLOC (NULL); live = new_tree_live_info (map); @@ -720,7 +720,7 @@ calculate_live_on_entry (var_map map) gcc_assert (num <= 0); #endif - BITMAP_XFREE (saw_def); + BITMAP_FREE (saw_def); return live; } @@ -742,7 +742,7 @@ calculate_live_on_exit (tree_live_info_p liveinfo) on_exit = (bitmap *)xmalloc (last_basic_block * sizeof (bitmap)); for (x = 0; x < (unsigned)last_basic_block; x++) - on_exit[x] = BITMAP_XMALLOC (); + on_exit[x] = BITMAP_ALLOC (NULL); /* Set all the live-on-exit bits for uses in PHIs. */ FOR_EACH_BB (bb) @@ -1309,7 +1309,7 @@ build_tree_conflict_graph (tree_live_info_p liveinfo, tpa_p tpa, if (tpa_num_trees (tpa) == 0) return graph; - live = BITMAP_XMALLOC (); + live = BITMAP_ALLOC (NULL); VARRAY_INT_INIT (partition_link, num_var_partitions (map) + 1, "part_link"); VARRAY_INT_INIT (tpa_nodes, tpa_num_trees (tpa), "tpa nodes"); @@ -1443,7 +1443,7 @@ build_tree_conflict_graph (tree_live_info_p liveinfo, tpa_p tpa, VARRAY_POP_ALL (tpa_to_clear); } - BITMAP_XFREE (live); + BITMAP_FREE (live); return graph; } |