(reg_unused_after): Ifdef out code for handling labels.
authorRichard Kenner <kenner@gcc.gnu.org>
Sat, 21 Oct 1995 22:29:14 +0000 (18:29 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 21 Oct 1995 22:29:14 +0000 (18:29 -0400)
From-SVN: r10499

gcc/config/sh/sh.c

index 597a7d3c164b57c8fc67c7a47f0872b3efa860cc..5636d1805c4daabbaaf2f6ded8d190a61277260b 100644 (file)
@@ -1892,14 +1892,21 @@ reg_unused_after (reg, insn)
     {
       code = GET_CODE (insn);
 
+#if 0
+      /* If this is a label that existed before reload, then the register
+        if dead here.  However, if this is a label added by reorg, then
+        the register may still be live here.  We can't tell the difference,
+        so we just ignore labels completely.  */
       if (code == CODE_LABEL)
        return 1;
+      /* else */
+#endif
 
       /* If this is a sequence, we must handle them all at once.
         We could have for instance a call that sets the target register,
         and a insn in a delay slot that uses the register.  In this case,
         we must return 0.  */
-      else if (code == INSN && GET_CODE (PATTERN (insn)) == SEQUENCE)
+      if (code == INSN && GET_CODE (PATTERN (insn)) == SEQUENCE)
        {
          int i;
          int retval = 0;