diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-06-05 20:35:53 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-06-05 20:35:53 +0000 |
commit | fc1ef759866615690d7517691c98bb319b12bad3 (patch) | |
tree | a0824028e49cab21fc8f6f163e744e8b2fa0d0d8 /gcc/sched.c | |
parent | 88ce9a72f7915514b64f931fa5542080b25759b4 (diff) | |
download | gcc-fc1ef759866615690d7517691c98bb319b12bad3.tar.gz |
Fix urgent bug
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14150 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched.c')
-rw-r--r-- | gcc/sched.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/sched.c b/gcc/sched.c index 1fa338f2e25..78f9b21d384 100644 --- a/gcc/sched.c +++ b/gcc/sched.c @@ -3857,12 +3857,13 @@ schedule_block (b, file) attach_deaths_insn (insn); /* Find registers now made live by that instruction. */ - EXECUTE_IF_SET_IN_REG_SET (bb_live_regs, 0, i, - { - sometimes_max - = new_sometimes_live (regs_sometimes_live, - i, sometimes_max); - }); + EXECUTE_IF_AND_COMPL_IN_REG_SET (bb_live_regs, old_live_regs, 0, i, + { + sometimes_max + = new_sometimes_live (regs_sometimes_live, + i, sometimes_max); + }); + IOR_REG_SET (old_live_regs, bb_live_regs); /* Count lengths of all regs we are worrying about now, and handle registers no longer live. */ @@ -3874,7 +3875,7 @@ schedule_block (b, file) p->live_length += 1; - if (REGNO_REG_SET_P (bb_live_regs, p->regno)) + if (!REGNO_REG_SET_P (bb_live_regs, p->regno)) { /* This is the end of one of this register's lifetime segments. Save the lifetime info collected so far, |