diff options
author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-24 23:29:44 +0000 |
---|---|---|
committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-24 23:29:44 +0000 |
commit | 01eb3997777036cfd007625624fd4d8fbf218fe8 (patch) | |
tree | 1d086d88798270e1f3378e6639d6398931a423e1 /gcc/ira-conflicts.c | |
parent | 15b60a9630f14531945d23ddba6b1d6fd2e5c4d8 (diff) | |
download | gcc-01eb3997777036cfd007625624fd4d8fbf218fe8.tar.gz |
* ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
minmax_set_iter_cond, minmax_set_iter_next,
FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
uses changed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161349 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ira-conflicts.c')
-rw-r--r-- | gcc/ira-conflicts.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gcc/ira-conflicts.c b/gcc/ira-conflicts.c index 9b6615051d5..aae3fa4e77e 100644 --- a/gcc/ira-conflicts.c +++ b/gcc/ira-conflicts.c @@ -54,10 +54,10 @@ static IRA_INT_TYPE **conflicts; #define CONFLICT_ALLOCNO_P(A1, A2) \ (ALLOCNO_MIN (A1) <= ALLOCNO_CONFLICT_ID (A2) \ && ALLOCNO_CONFLICT_ID (A2) <= ALLOCNO_MAX (A1) \ - && TEST_ALLOCNO_SET_BIT (conflicts[ALLOCNO_NUM (A1)], \ - ALLOCNO_CONFLICT_ID (A2), \ - ALLOCNO_MIN (A1), \ - ALLOCNO_MAX (A1))) + && TEST_MINMAX_SET_BIT (conflicts[ALLOCNO_NUM (A1)], \ + ALLOCNO_CONFLICT_ID (A2), \ + ALLOCNO_MIN (A1), \ + ALLOCNO_MAX (A1))) @@ -142,13 +142,13 @@ build_conflict_bit_table (void) /* Don't set up conflict for the allocno with itself. */ && num != (int) j) { - SET_ALLOCNO_SET_BIT (conflicts[num], - ALLOCNO_CONFLICT_ID (live_a), - ALLOCNO_MIN (allocno), - ALLOCNO_MAX (allocno)); - SET_ALLOCNO_SET_BIT (conflicts[j], id, - ALLOCNO_MIN (live_a), - ALLOCNO_MAX (live_a)); + SET_MINMAX_SET_BIT (conflicts[num], + ALLOCNO_CONFLICT_ID (live_a), + ALLOCNO_MIN (allocno), + ALLOCNO_MAX (allocno)); + SET_MINMAX_SET_BIT (conflicts[j], id, + ALLOCNO_MIN (live_a), + ALLOCNO_MAX (live_a)); } } } @@ -560,12 +560,12 @@ build_allocno_conflicts (ira_allocno_t a) ira_allocno_t parent_a, another_a, another_parent_a; ira_allocno_t *vec; IRA_INT_TYPE *allocno_conflicts; - ira_allocno_set_iterator asi; + minmax_set_iterator asi; allocno_conflicts = conflicts[ALLOCNO_NUM (a)]; px = 0; - FOR_EACH_ALLOCNO_IN_SET (allocno_conflicts, - ALLOCNO_MIN (a), ALLOCNO_MAX (a), i, asi) + FOR_EACH_BIT_IN_MINMAX_SET (allocno_conflicts, + ALLOCNO_MIN (a), ALLOCNO_MAX (a), i, asi) { another_a = ira_conflict_id_allocno_map[i]; ira_assert (ira_reg_classes_intersect_p @@ -597,8 +597,8 @@ build_allocno_conflicts (ira_allocno_t a) return; ira_assert (ALLOCNO_COVER_CLASS (a) == ALLOCNO_COVER_CLASS (parent_a)); parent_num = ALLOCNO_NUM (parent_a); - FOR_EACH_ALLOCNO_IN_SET (allocno_conflicts, - ALLOCNO_MIN (a), ALLOCNO_MAX (a), i, asi) + FOR_EACH_BIT_IN_MINMAX_SET (allocno_conflicts, + ALLOCNO_MIN (a), ALLOCNO_MAX (a), i, asi) { another_a = ira_conflict_id_allocno_map[i]; ira_assert (ira_reg_classes_intersect_p @@ -609,10 +609,10 @@ build_allocno_conflicts (ira_allocno_t a) ira_assert (ALLOCNO_NUM (another_parent_a) >= 0); ira_assert (ALLOCNO_COVER_CLASS (another_a) == ALLOCNO_COVER_CLASS (another_parent_a)); - SET_ALLOCNO_SET_BIT (conflicts[parent_num], - ALLOCNO_CONFLICT_ID (another_parent_a), - ALLOCNO_MIN (parent_a), - ALLOCNO_MAX (parent_a)); + SET_MINMAX_SET_BIT (conflicts[parent_num], + ALLOCNO_CONFLICT_ID (another_parent_a), + ALLOCNO_MIN (parent_a), + ALLOCNO_MAX (parent_a)); } } |