diff options
author | Jeff Law <law@gcc.gnu.org> | 1998-10-19 03:44:34 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-10-19 03:44:34 -0600 |
commit | 5f5702e21c93df1c76780b3ae40f7abe1d3b2a3e (patch) | |
tree | 14f97a2b72269e77d8334992d5aedd1c5dd7ee9f /gcc/haifa-sched.c | |
parent | 577a8b78ca0ca1f84b2027eb388105b1a48ad68e (diff) | |
download | gcc-5f5702e21c93df1c76780b3ae40f7abe1d3b2a3e.zip gcc-5f5702e21c93df1c76780b3ae40f7abe1d3b2a3e.tar.gz gcc-5f5702e21c93df1c76780b3ae40f7abe1d3b2a3e.tar.bz2 |
sched.c (update_flow_info): Handle death notes made invalid by instruction splitting.
�
* sched.c (update_flow_info): Handle death notes made invalid by
instruction splitting. Partially reverts Oct 15, 1998 patch.
* haifa-sched.c (update_flow_info): Likewise.
From-SVN: r23170
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r-- | gcc/haifa-sched.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 806bb39..abc45d3 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -7987,7 +7987,21 @@ update_flow_info (notes, first, last, orig_insn) register that was not needed by this instantiation of the pattern, so we can safely ignore it. */ if (insn == first) - { + { + /* We have accurate death notes after reload now, but this + code is still necessary. Consider splitting a store into + (subreg:DF (reg:DC) 0). The death notes will claim the + entire DCmode value is dead. But after splitting we know + that only part of it is dead. Ie, the splitting action + actually eliminated the death of one or more hard + registers. */ + if (reload_completed && REG_NOTE_KIND (note) == REG_DEAD) + { + XEXP (note, 1) = REG_NOTES (insn); + REG_NOTES (insn) = note; + break; + } + if (REG_NOTE_KIND (note) != REG_UNUSED) abort (); |