ira-color.c (put_allocno_into_bucket): Remove set but not used local variable hard_re...
authorDavid Binderman <dcb314@hotmail.com>
Sat, 28 Nov 2009 09:49:56 +0000 (09:49 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 28 Nov 2009 09:49:56 +0000 (09:49 +0000)
2009-11-28  David Binderman  <dcb314@hotmail.com>

* ira-color.c (put_allocno_into_bucket): Remove set but not used
local variable hard_regs_num.
* ira-lives.c (process_single_reg_class_operands): Remove cover_class.
* loop-unswitch.c (unswitch_loop): Remove zero_bitmap.
* lower-subreg.c (decompose_multiword_subregs): Remove next.

From-SVN: r154720

gcc/ChangeLog
gcc/ira-color.c
gcc/ira-lives.c
gcc/loop-unswitch.c
gcc/lower-subreg.c

index 02faa00..4b9f723 100644 (file)
@@ -1,3 +1,11 @@
+2009-11-28  David Binderman  <dcb314@hotmail.com>
+
+       * ira-color.c (put_allocno_into_bucket): Remove set but not used
+       local variable hard_regs_num.
+       * ira-lives.c (process_single_reg_class_operands): Remove cover_class.
+       * loop-unswitch.c (unswitch_loop): Remove zero_bitmap.
+       * lower-subreg.c (decompose_multiword_subregs): Remove next.
+
 2009-11-27  Martin Jambor  <mjambor@suse.cz>
 
        PR middle-end/42006
index 87237b5..4ba7112 100644 (file)
@@ -1476,11 +1476,9 @@ setup_allocno_left_conflicts_size (ira_allocno_t allocno)
 static void
 put_allocno_into_bucket (ira_allocno_t allocno)
 {
-  int hard_regs_num;
   enum reg_class cover_class;
 
   cover_class = ALLOCNO_COVER_CLASS (allocno);
-  hard_regs_num = ira_class_hard_regs_num[cover_class];
   if (ALLOCNO_FIRST_COALESCED_ALLOCNO (allocno) != allocno)
     return;
   ALLOCNO_IN_GRAPH_P (allocno) = true;
index 4302598..7f2769f 100644 (file)
@@ -804,7 +804,7 @@ process_single_reg_class_operands (bool in_p, int freq)
 {
   int i, regno, cost;
   unsigned int px;
-  enum reg_class cl, cover_class;
+  enum reg_class cl;
   rtx operand;
   ira_allocno_t operand_a, a;
 
@@ -861,7 +861,6 @@ process_single_reg_class_operands (bool in_p, int freq)
       EXECUTE_IF_SET_IN_SPARSESET (allocnos_live, px)
         {
          a = ira_allocnos[px];
-         cover_class = ALLOCNO_COVER_CLASS (a);
          if (a != operand_a)
            {
              /* We could increase costs of A instead of making it
index 513fc64..ca9543c 100644 (file)
@@ -392,7 +392,6 @@ unswitch_loop (struct loop *loop, basic_block unswitch_on, rtx cond, rtx cinsn)
   edge entry, latch_edge, true_edge, false_edge, e;
   basic_block switch_bb, unswitch_on_alt;
   struct loop *nloop;
-  sbitmap zero_bitmap;
   int irred_flag, prob;
   rtx seq;
 
@@ -409,7 +408,6 @@ unswitch_loop (struct loop *loop, basic_block unswitch_on, rtx cond, rtx cinsn)
   /* Make a copy.  */
   irred_flag = entry->flags & EDGE_IRREDUCIBLE_LOOP;
   entry->flags &= ~EDGE_IRREDUCIBLE_LOOP;
-  zero_bitmap = sbitmap_alloc (2);
   if (!duplicate_loop_to_header_edge (loop, entry, 1,
                                      NULL, NULL, NULL, 0))
     return NULL;
index 590e8e8..3301a9d 100644 (file)
@@ -1174,13 +1174,11 @@ decompose_multiword_subregs (void)
 
          FOR_BB_INSNS (bb, insn)
            {
-             rtx next, pat;
+             rtx pat;
 
              if (!INSN_P (insn))
                continue;
 
-             next = NEXT_INSN (insn);
-
              pat = PATTERN (insn);
              if (GET_CODE (pat) == CLOBBER)
                resolve_clobber (pat, insn);