(attach_deaths_insn): Don't call attach_deaths for CLOBBERs.
authorJim Wilson <wilson@gcc.gnu.org>
Fri, 14 Aug 1992 22:51:36 +0000 (15:51 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Fri, 14 Aug 1992 22:51:36 +0000 (15:51 -0700)
From-SVN: r1846

gcc/sched.c

index 525d9eb3d166387974148ca3d265dde60bf9ba6c..7d30e2484dc671108f6f744c2146ca6294626e5f 100644 (file)
@@ -2189,15 +2189,15 @@ attach_deaths_insn (insn)
 
              attach_deaths (SET_DEST (XVECEXP (x, 0, i)), insn, 1);
            }
-         else if (code == CLOBBER)
-           attach_deaths (XEXP (XVECEXP (x, 0, i), 0), insn, 1);
-         else
+         /* Flow does not add REG_DEAD notes to registers that die in
+            clobbers, so we can't either.  */
+         else if (code != CLOBBER)
            attach_deaths (XVECEXP (x, 0, i), insn, 0);
        }
     }
-  else if (code == CLOBBER)
-    attach_deaths (XEXP (x, 0), insn, 1);
-  else
+  /* Flow does not add REG_DEAD notes to registers that die in
+     clobbers, so we can't either.  */
+  else if (code != CLOBBER)
     attach_deaths (x, insn, 0);
 }