From f3ea5f6ac344809ee93430dba4f97b86c7cd6e31 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 28 May 2002 13:01:29 -0700 Subject: [PATCH] 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 --- gcc/ChangeLog | 4 ++++ gcc/flow.c | 14 +++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aadf4975637..6e0c9a4da9e 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 * tree.h: Forward-declare struct realvaluetype. diff --git a/gcc/flow.c b/gcc/flow.c index 17a2662d154..4f13e813759 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -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) { -- 2.30.2