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/alias.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/alias.c')
-rw-r--r-- | gcc/alias.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index af482ee..b42f9d7 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -1245,7 +1245,7 @@ record_set (rtx dest, const_rtx set, void *data ATTRIBUTE_UNUSED) { while (--n >= 0) { - SET_BIT (reg_seen, regno + n); + bitmap_set_bit (reg_seen, regno + n); new_reg_base_value[regno + n] = 0; } return; @@ -1266,12 +1266,12 @@ record_set (rtx dest, const_rtx set, void *data ATTRIBUTE_UNUSED) else { /* There's a REG_NOALIAS note against DEST. */ - if (TEST_BIT (reg_seen, regno)) + if (bitmap_bit_p (reg_seen, regno)) { new_reg_base_value[regno] = 0; return; } - SET_BIT (reg_seen, regno); + bitmap_set_bit (reg_seen, regno); new_reg_base_value[regno] = unique_base_value (unique_id++); return; } @@ -1327,10 +1327,10 @@ record_set (rtx dest, const_rtx set, void *data ATTRIBUTE_UNUSED) } /* If this is the first set of a register, record the value. */ else if ((regno >= FIRST_PSEUDO_REGISTER || ! fixed_regs[regno]) - && ! TEST_BIT (reg_seen, regno) && new_reg_base_value[regno] == 0) + && ! bitmap_bit_p (reg_seen, regno) && new_reg_base_value[regno] == 0) new_reg_base_value[regno] = find_base_value (src); - SET_BIT (reg_seen, regno); + bitmap_set_bit (reg_seen, regno); } /* Return REG_BASE_VALUE for REGNO. Selective scheduler uses this to avoid @@ -1377,7 +1377,7 @@ get_reg_known_equiv_p (unsigned int regno) { regno -= FIRST_PSEUDO_REGISTER; if (regno < VEC_length (rtx, reg_known_value)) - return TEST_BIT (reg_known_equiv_p, regno); + return bitmap_bit_p (reg_known_equiv_p, regno); } return false; } @@ -1391,9 +1391,9 @@ set_reg_known_equiv_p (unsigned int regno, bool val) if (regno < VEC_length (rtx, reg_known_value)) { if (val) - SET_BIT (reg_known_equiv_p, regno); + bitmap_set_bit (reg_known_equiv_p, regno); else - RESET_BIT (reg_known_equiv_p, regno); + bitmap_clear_bit (reg_known_equiv_p, regno); } } } |