diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1992-08-14 15:51:36 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1992-08-14 15:51:36 -0700 |
commit | 5856c581baeaeef59ecefba059f53fe83abdc6bd (patch) | |
tree | 27506b1747907cf833032b6b51c394ec595b5e42 /gcc/sched.c | |
parent | d887e8089bcfb74cd4dc365603550b2d793b0009 (diff) | |
download | gcc-5856c581baeaeef59ecefba059f53fe83abdc6bd.zip gcc-5856c581baeaeef59ecefba059f53fe83abdc6bd.tar.gz gcc-5856c581baeaeef59ecefba059f53fe83abdc6bd.tar.bz2 |
(attach_deaths_insn): Don't call attach_deaths for CLOBBERs.
From-SVN: r1846
Diffstat (limited to 'gcc/sched.c')
-rw-r--r-- | gcc/sched.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/sched.c b/gcc/sched.c index 525d9eb..7d30e24 100644 --- a/gcc/sched.c +++ b/gcc/sched.c @@ -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); } |