summaryrefslogtreecommitdiff
path: root/gcc/sched.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-19 09:44:36 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-19 09:44:36 +0000
commit831f2d1b1019cf61a3178322808b8fd9a74a4b0e (patch)
tree4fd568e70b40740c9210f2e161387f49f2d20cf3 /gcc/sched.c
parent85be29e53a731ffdbc5f6c94c5f273994cb4ac47 (diff)
downloadgcc-831f2d1b1019cf61a3178322808b8fd9a74a4b0e.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23171 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched.c')
-rw-r--r--gcc/sched.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/sched.c b/gcc/sched.c
index 1d81407c3f4..ce2f248e00e 100644
--- a/gcc/sched.c
+++ b/gcc/sched.c
@@ -3828,7 +3828,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 ();