combine.c (try_combine, [...]): Remove REG_N_REFS updating code.
authorJan Hubicka <hubicka@freesoft.cz>
Thu, 9 Dec 1999 10:46:10 +0000 (11:46 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 9 Dec 1999 10:46:10 +0000 (10:46 +0000)
* combine.c (try_combine, distribute_notes): Remove REG_N_REFS
updating code.

From-SVN: r30842

gcc/ChangeLog
gcc/combine.c

index d306231610c3c1ce159e0d17c6e6aa77987c6ada..aa3dd01e1528d9fae5a448febde97ba50a1dc421 100644 (file)
@@ -1,3 +1,8 @@
+Thu Dec  9 11:36:24 MET 1999 Jan Hubicka  <hubicka@freesoft.cz>
+
+       * combine.c (try_combine, distribute_notes): Remove REG_N_REFS
+       updating code.
+
 1999-12-09  Jakub Jelinek  <jakub@redhat.com>
 
        * config/sparc/linux64.h (TARGET_DEFAULT): Make -mapp-regs
index 8411b4f9ae189f6c191d4c4f170761c1dc02954d..a2053bdeffff0cd8eec5984e9080b188ff1ddf13 100644 (file)
@@ -2642,10 +2642,6 @@ try_combine (i3, i2, i1)
          {
            regno = REGNO (i2dest);
            REG_N_SETS (regno)--;
-           if (REG_N_SETS (regno) == 0
-               && ! REGNO_REG_SET_P (BASIC_BLOCK (0)->global_live_at_start,
-                                     regno))
-             REG_N_REFS (regno) = 0;
          }
       }
 
@@ -2665,10 +2661,6 @@ try_combine (i3, i2, i1)
        if (! added_sets_1 && ! i1dest_in_i1src)
          {
            REG_N_SETS (regno)--;
-           if (REG_N_SETS (regno) == 0
-               && ! REGNO_REG_SET_P (BASIC_BLOCK (0)->global_live_at_start,
-                                     regno))
-             REG_N_REFS (regno) = 0;
          }
       }
 
@@ -11977,18 +11969,6 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1)
          if (XEXP (note, 0) == elim_i2 || XEXP (note, 0) == elim_i1)
            break;
 
-         /* If the register is used in both I2 and I3 and it dies in I3, 
-            we might have added another reference to it.  If reg_n_refs
-            was 2, bump it to 3.  This has to be correct since the 
-            register must have been set somewhere.  The reason this is
-            done is because local-alloc.c treats 2 references as a 
-            special case.  */
-
-         if (place == i3 && i2 != 0 && GET_CODE (XEXP (note, 0)) == REG
-             && REG_N_REFS (REGNO (XEXP (note, 0)))== 2
-             && reg_referenced_p (XEXP (note, 0), PATTERN (i2)))
-           REG_N_REFS (REGNO (XEXP (note, 0))) = 3;
-
          if (place == 0)
            {
              basic_block bb = BASIC_BLOCK (this_basic_block);