diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1994-08-14 15:59:58 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1994-08-14 15:59:58 -0700 |
commit | 96cbe26ae9ad0d37e3c91723e78ab441901a7905 (patch) | |
tree | cc289487ffed0aa3ba711d56b0156f4594a17bca /gcc | |
parent | 8700c49499167593375eac262646fb9246904015 (diff) | |
download | gcc-96cbe26ae9ad0d37e3c91723e78ab441901a7905.zip gcc-96cbe26ae9ad0d37e3c91723e78ab441901a7905.tar.gz gcc-96cbe26ae9ad0d37e3c91723e78ab441901a7905.tar.bz2 |
(attach_deaths): When adding REG_DEAD notes...
(attach_deaths): When adding REG_DEAD notes, check for
the case where a multiple register hard reg overlaps a register
set by the insn.
From-SVN: r7919
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/sched.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/sched.c b/gcc/sched.c index 9870967..549148b 100644 --- a/gcc/sched.c +++ b/gcc/sched.c @@ -2825,6 +2825,16 @@ attach_deaths (x, insn, set_p) { if (! all_needed && ! dead_or_set_p (insn, x)) { + /* Check for the case where the register dying partially + overlaps the register set by this insn. */ + if (regno < FIRST_PSEUDO_REGISTER + && HARD_REGNO_NREGS (regno, GET_MODE (x)) > 1) + { + int n = HARD_REGNO_NREGS (regno, GET_CODE (x)); + while (--n >= 0) + some_needed |= dead_or_set_regno_p (insn, regno + n); + } + /* If none of the words in X is needed, make a REG_DEAD note. Otherwise, we must make partial REG_DEAD notes. */ |