Commit f3ea5f6a by Richard Henderson Committed by Richard Henderson

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
parent 04653686
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
* cfg.c (dump_flow_info): Print bb->index, not i, for block number. * 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> 2002-05-28 Zack Weinberg <zack@codesourcery.com>
* tree.h: Forward-declare struct realvaluetype. * tree.h: Forward-declare struct realvaluetype.
......
...@@ -1065,8 +1065,8 @@ calculate_global_regs_live (blocks_in, blocks_out, flags) ...@@ -1065,8 +1065,8 @@ calculate_global_regs_live (blocks_in, blocks_out, flags)
int flags; int flags;
{ {
basic_block *queue, *qhead, *qtail, *qend, bb; basic_block *queue, *qhead, *qtail, *qend, bb;
regset tmp, new_live_at_end, call_used; regset tmp, new_live_at_end, invalidated_by_call;
regset_head tmp_head, call_used_head; regset_head tmp_head, invalidated_by_call_head;
regset_head new_live_at_end_head; regset_head new_live_at_end_head;
int i; int i;
...@@ -1080,12 +1080,12 @@ calculate_global_regs_live (blocks_in, blocks_out, flags) ...@@ -1080,12 +1080,12 @@ calculate_global_regs_live (blocks_in, blocks_out, flags)
tmp = INITIALIZE_REG_SET (tmp_head); tmp = INITIALIZE_REG_SET (tmp_head);
new_live_at_end = INITIALIZE_REG_SET (new_live_at_end_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. */ /* Inconveniently, this is only readily available in hard reg set form. */
for (i = 0; i < FIRST_PSEUDO_REGISTER; ++i) for (i = 0; i < FIRST_PSEUDO_REGISTER; ++i)
if (call_used_regs[i]) if (TEST_HARD_REG_BIT (regs_invalidated_by_call, i))
SET_REGNO_REG_SET (call_used, i); SET_REGNO_REG_SET (invalidated_by_call, i);
/* Create a worklist. Allocate an extra slot for ENTRY_BLOCK, and one /* Create a worklist. Allocate an extra slot for ENTRY_BLOCK, and one
because the `head == tail' style test for an empty queue doesn't 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) ...@@ -1167,7 +1167,7 @@ calculate_global_regs_live (blocks_in, blocks_out, flags)
if (e->flags & EDGE_EH) if (e->flags & EDGE_EH)
{ {
bitmap_operation (tmp, sb->global_live_at_start, 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); IOR_REG_SET (new_live_at_end, tmp);
} }
else else
...@@ -1335,7 +1335,7 @@ calculate_global_regs_live (blocks_in, blocks_out, flags) ...@@ -1335,7 +1335,7 @@ calculate_global_regs_live (blocks_in, blocks_out, flags)
FREE_REG_SET (tmp); FREE_REG_SET (tmp);
FREE_REG_SET (new_live_at_end); FREE_REG_SET (new_live_at_end);
FREE_REG_SET (call_used); FREE_REG_SET (invalidated_by_call);
if (blocks_out) if (blocks_out)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment