sched.c (update_flow_info): Don't pass SCRATCH to dead_or_set_p.

* sched.c (update_flow_info): Don't pass SCRATCH to dead_or_set_p.
        * haifa-sched.c (update_flow_info): Likewise.

From-SVN: r15589
This commit is contained in:
J"orn Rennecke 1997-09-20 00:52:52 +00:00 committed by Jeff Law
parent 09f97c1e6c
commit 272299b9ca
3 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Fri Sep 19 18:53:50 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* sched.c (update_flow_info): Don't pass SCRATCH to dead_or_set_p.
* haifa-sched.c (update_flow_info): Likewise.
Thu Sep 18 21:13:40 1997 Jeffrey A Law (law@cygnus.com)
* Makefile.in (BOOT_CFLAGS): Use -O2.

View file

@ -7906,6 +7906,7 @@ update_flow_info (notes, first, last, orig_insn)
/* ??? This won't handle multiple word registers correctly,
but should be good enough for now. */
if (REG_NOTE_KIND (note) == REG_UNUSED
&& GET_CODE (XEXP (note, 0)) != SCRATCH
&& !dead_or_set_p (insn, XEXP (note, 0)))
PUT_REG_NOTE_KIND (note, REG_DEAD);

View file

@ -3801,6 +3801,7 @@ update_flow_info (notes, first, last, orig_insn)
/* ??? This won't handle multiple word registers correctly,
but should be good enough for now. */
if (REG_NOTE_KIND (note) == REG_UNUSED
&& GET_CODE (XEXP (note, 0)) != SCRATCH
&& ! dead_or_set_p (insn, XEXP (note, 0)))
PUT_REG_NOTE_KIND (note, REG_DEAD);