flow.c (calculate_global_regs_live): Rename call_used to invalidated_by_call.
authorRichard Henderson <rth@redhat.com>
Tue, 28 May 2002 20:01:29 +0000 (13:01 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 28 May 2002 20:01:29 +0000 (13:01 -0700)
        * 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
gcc/flow.c

index aadf49756372d9b91d0054713c340f60fdb40178..6e0c9a4da9e76d190f0f5342dd681dd25d0dd809 100644 (file)
@@ -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.
index 17a2662d154c47bc2d93ee9baeb5046fd2309f0f..4f13e813759a6b912572e371665d74f9ed182755 100644 (file)
@@ -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)
     {