diff options
author | Lawrence Crowl <crowl@google.com> | 2012-11-01 19:23:35 +0000 |
---|---|---|
committer | Lawrence Crowl <crowl@gcc.gnu.org> | 2012-11-01 19:23:35 +0000 |
commit | d7c028c07b1998cc80f67e053c8131cf8b387af7 (patch) | |
tree | 5ec5bcd56906f1ff213b4652971a165736d6fda7 /gcc/df-core.c | |
parent | 6cd1dd26753a93d9916335a6f698857915d273c2 (diff) | |
download | gcc-d7c028c07b1998cc80f67e053c8131cf8b387af7.zip gcc-d7c028c07b1998cc80f67e053c8131cf8b387af7.tar.gz gcc-d7c028c07b1998cc80f67e053c8131cf8b387af7.tar.bz2 |
This patch normalizes more bitmap function names.
sbitmap.h
TEST_BIT -> bitmap_bit_p
SET_BIT -> bitmap_set_bit
SET_BIT_WITH_POPCOUNT -> bitmap_set_bit_with_popcount
RESET_BIT -> bitmap_clear_bit
RESET_BIT_WITH_POPCOUNT -> bitmap_clear_bit_with_popcount
basic-block.h
sbitmap_intersection_of_succs -> bitmap_intersection_of_succs
sbitmap_intersection_of_preds -> bitmap_intersection_of_preds
sbitmap_union_of_succs -> bitmap_union_of_succs
sbitmap_union_of_preds -> bitmap_union_of_preds
The sbitmap.h functions also needed their numeric paramter changed
from unsigned int to int to match the bitmap functions.
Callers updated to match.
Tested on x86-64, config-list.mk testing.
Index: gcc/ChangeLog
2012-11-01 Lawrence Crowl <crowl@google.com>
* sbitmap.h (TEST_BIT): Rename bitmap_bit_p, normalizing parameter
type. Update callers to match.
(SET_BIT): Rename bitmap_set_bit, normalizing parameter type. Update
callers to match.
(SET_BIT_WITH_POPCOUNT): Rename bitmap_set_bit_with_popcount,
normalizing parameter type. Update callers to match.
(RESET_BIT): Rename bitmap_clear_bit, normalizing parameter type.
Update callers to match.
(RESET_BIT_WITH_POPCOUNT): Rename bitmap_clear_bit_with_popcount,
normalizing parameter type. Update callers to match.
* basic-block.h (sbitmap_intersection_of_succs): Rename
bitmap_intersection_of_succs. Update callers to match.
* basic-block.h (sbitmap_intersection_of_preds): Rename
bitmap_intersection_of_preds. Update callers to match.
* basic-block.h (sbitmap_union_of_succs): Rename
bitmap_union_of_succs. Update callers to match.
* basic-block.h (sbitmap_union_of_preds): Rename
bitmap_union_of_preds. Update callers to match.
From-SVN: r193066
Diffstat (limited to 'gcc/df-core.c')
-rw-r--r-- | gcc/df-core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/df-core.c b/gcc/df-core.c index dd1060e..2bc3d7f 100644 --- a/gcc/df-core.c +++ b/gcc/df-core.c @@ -891,7 +891,7 @@ df_worklist_propagate_forward (struct dataflow *dataflow, FOR_EACH_EDGE (e, ei, bb->preds) { if (age <= BB_LAST_CHANGE_AGE (e->src) - && TEST_BIT (considered, e->src->index)) + && bitmap_bit_p (considered, e->src->index)) changed |= dataflow->problem->con_fun_n (e); } else if (dataflow->problem->con_fun_0) @@ -906,7 +906,7 @@ df_worklist_propagate_forward (struct dataflow *dataflow, { unsigned ob_index = e->dest->index; - if (TEST_BIT (considered, ob_index)) + if (bitmap_bit_p (considered, ob_index)) bitmap_set_bit (pending, bbindex_to_postorder[ob_index]); } return true; @@ -936,7 +936,7 @@ df_worklist_propagate_backward (struct dataflow *dataflow, FOR_EACH_EDGE (e, ei, bb->succs) { if (age <= BB_LAST_CHANGE_AGE (e->dest) - && TEST_BIT (considered, e->dest->index)) + && bitmap_bit_p (considered, e->dest->index)) changed |= dataflow->problem->con_fun_n (e); } else if (dataflow->problem->con_fun_0) @@ -951,7 +951,7 @@ df_worklist_propagate_backward (struct dataflow *dataflow, { unsigned ob_index = e->src->index; - if (TEST_BIT (considered, ob_index)) + if (bitmap_bit_p (considered, ob_index)) bitmap_set_bit (pending, bbindex_to_postorder[ob_index]); } return true; @@ -1086,7 +1086,7 @@ df_worklist_dataflow (struct dataflow *dataflow, bitmap_clear (considered); EXECUTE_IF_SET_IN_BITMAP (blocks_to_consider, 0, index, bi) { - SET_BIT (considered, index); + bitmap_set_bit (considered, index); } /* Initialize the mapping of block index to postorder. */ |