diff options
author | Richard Henderson <rth@redhat.com> | 2002-05-28 13:01:29 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-05-28 13:01:29 -0700 |
commit | f3ea5f6ac344809ee93430dba4f97b86c7cd6e31 (patch) | |
tree | f81a67b2f508a443075b9281c82d3599b482e86f /gcc | |
parent | 04653686e741179a07c4b61824684b919352a0e1 (diff) | |
download | gcc-f3ea5f6ac344809ee93430dba4f97b86c7cd6e31.zip gcc-f3ea5f6ac344809ee93430dba4f97b86c7cd6e31.tar.gz gcc-f3ea5f6ac344809ee93430dba4f97b86c7cd6e31.tar.bz2 |
flow.c (calculate_global_regs_live): Rename call_used to invalidated_by_call.
* flow.c (calculate_global_regs_live): Rename call_used to
invalidated_by_call. Initialize from regs_invalidated_by_call
instead of call_used_regs.
From-SVN: r53962
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/flow.c | 14 |
2 files changed, 11 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aadf497..6e0c9a4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -2,6 +2,10 @@ * cfg.c (dump_flow_info): Print bb->index, not i, for block number. + * flow.c (calculate_global_regs_live): Rename call_used to + invalidated_by_call. Initialize from regs_invalidated_by_call + instead of call_used_regs. + 2002-05-28 Zack Weinberg <zack@codesourcery.com> * tree.h: Forward-declare struct realvaluetype. @@ -1065,8 +1065,8 @@ calculate_global_regs_live (blocks_in, blocks_out, flags) int flags; { basic_block *queue, *qhead, *qtail, *qend, bb; - regset tmp, new_live_at_end, call_used; - regset_head tmp_head, call_used_head; + regset tmp, new_live_at_end, invalidated_by_call; + regset_head tmp_head, invalidated_by_call_head; regset_head new_live_at_end_head; int i; @@ -1080,12 +1080,12 @@ calculate_global_regs_live (blocks_in, blocks_out, flags) tmp = INITIALIZE_REG_SET (tmp_head); new_live_at_end = INITIALIZE_REG_SET (new_live_at_end_head); - call_used = INITIALIZE_REG_SET (call_used_head); + invalidated_by_call = INITIALIZE_REG_SET (invalidated_by_call_head); /* Inconveniently, this is only readily available in hard reg set form. */ for (i = 0; i < FIRST_PSEUDO_REGISTER; ++i) - if (call_used_regs[i]) - SET_REGNO_REG_SET (call_used, i); + if (TEST_HARD_REG_BIT (regs_invalidated_by_call, i)) + SET_REGNO_REG_SET (invalidated_by_call, i); /* Create a worklist. Allocate an extra slot for ENTRY_BLOCK, and one because the `head == tail' style test for an empty queue doesn't @@ -1167,7 +1167,7 @@ calculate_global_regs_live (blocks_in, blocks_out, flags) if (e->flags & EDGE_EH) { bitmap_operation (tmp, sb->global_live_at_start, - call_used, BITMAP_AND_COMPL); + invalidated_by_call, BITMAP_AND_COMPL); IOR_REG_SET (new_live_at_end, tmp); } else @@ -1335,7 +1335,7 @@ calculate_global_regs_live (blocks_in, blocks_out, flags) FREE_REG_SET (tmp); FREE_REG_SET (new_live_at_end); - FREE_REG_SET (call_used); + FREE_REG_SET (invalidated_by_call); if (blocks_out) { |