diff options
author | Trevor Saunders <tsaunders@mozilla.com> | 2013-11-18 22:36:34 -0500 |
---|---|---|
committer | Trevor Saunders <tsaunders@mozilla.com> | 2013-11-18 22:36:34 -0500 |
commit | 0c4d1ac58074fda4b63b62d4774ef6d2822c59fc (patch) | |
tree | 4441a04bc55e8f43bcf585457ea30f56c15ce837 /gcc/tree-ssa-live.c | |
parent | 994ab8bb4b8a0ba60ddb3a669f510dd56d7ccae4 (diff) | |
download | gcc-tbsaunde/bitmap2.tar.gz |
move some bitmap functions to methodstbsaunde/bitmap2
Diffstat (limited to 'gcc/tree-ssa-live.c')
-rw-r--r-- | gcc/tree-ssa-live.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c index ee4e05641a3..d88cc52024b 100644 --- a/gcc/tree-ssa-live.c +++ b/gcc/tree-ssa-live.c @@ -275,7 +275,7 @@ partition_view_init (var_map map) if (ssa_name (tmp) != NULL_TREE && !virtual_operand_p (ssa_name (tmp)) && (!has_zero_uses (ssa_name (tmp)) || !SSA_NAME_IS_DEFAULT_DEF (ssa_name (tmp)))) - bitmap_set_bit (used, tmp); + used->set_bit (tmp); } map->num_partitions = map->partition_size; @@ -357,7 +357,7 @@ partition_view_bitmap (var_map map, bitmap only, bool want_bases) { p = partition_find (map->var_partition, x); gcc_assert (bitmap_bit_p (used, p)); - bitmap_set_bit (new_partitions, p); + new_partitions->set_bit (p); } partition_view_fini (map, new_partitions); @@ -376,7 +376,7 @@ static bitmap usedvars; static inline bool set_is_used (tree var) { - return bitmap_set_bit (usedvars, DECL_UID (var)); + return usedvars->set_bit (DECL_UID (var)); } /* Return true if VAR is marked as used. */ @@ -1080,7 +1080,7 @@ set_var_live_on_entry (tree ssa_name, tree_live_info_p live) def_bb = gimple_bb (stmt); /* Mark defs in liveout bitmap temporarily. */ if (def_bb) - bitmap_set_bit (&live->liveout[def_bb->index], p); + live->liveout[def_bb->index].set_bit (p); } else def_bb = ENTRY_BLOCK_PTR; @@ -1119,14 +1119,14 @@ set_var_live_on_entry (tree ssa_name, tree_live_info_p live) if (add_block) { global = true; - bitmap_set_bit (&live->livein[add_block->index], p); + live->livein[add_block->index].set_bit (p); } } /* If SSA_NAME is live on entry to at least one block, fill in all the live on entry blocks between the def and all the uses. */ if (global) - bitmap_set_bit (live->global, p); + live->global->set_bit (p); } @@ -1141,7 +1141,7 @@ calculate_live_on_exit (tree_live_info_p liveinfo) /* live on entry calculations used liveout vectors for defs, clear them. */ FOR_EACH_BB (bb) - bitmap_clear (&liveinfo->liveout[bb->index]); + liveinfo->liveout[bb->index].clear (); /* Set all the live-on-exit bits for uses in PHIs. */ FOR_EACH_BB (bb) @@ -1166,7 +1166,7 @@ calculate_live_on_exit (tree_live_info_p liveinfo) continue; e = gimple_phi_arg_edge (phi, i); if (e->src != ENTRY_BLOCK_PTR) - bitmap_set_bit (&liveinfo->liveout[e->src->index], p); + liveinfo->liveout[e->src->index].set_bit (p); } } |