Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
        * jump.c (jump_optimize): Call regs_set_between_p with PREV_INSN(x),
        NEXT_INSN(x) to check insn x.

From-SVN: r24046
This commit is contained in:
Herman A.J. ten Brugge 1998-12-01 16:06:35 +01:00 committed by Richard Henderson
parent 45c85c4e71
commit 1f5fb51fab
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Tue Dec 1 15:03:30 1998 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* jump.c (jump_optimize): Call regs_set_between_p with PREV_INSN(x),
NEXT_INSN(x) to check insn x.
Tue Dec 1 15:20:44 1998 Jeffrey A Law (law@cygnus.com)
* reload1.c (reload): Do not set reload_completed or split insns

View File

@ -521,7 +521,8 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
|| ! modified_between_p (SET_SRC (temp4), p, temp2))
/* Verify that registers used by the jump are not clobbered
by the instruction being moved. */
&& ! regs_set_between_p (PATTERN (temp), temp2,
&& ! regs_set_between_p (PATTERN (temp),
PREV_INSN (temp2),
NEXT_INSN (temp2)))
{
emit_insn_after_with_line_notes (PATTERN (temp2), p, temp2);
@ -622,7 +623,8 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
&& ! modified_between_p (SET_SRC (temp4), insert_after, temp)
/* Verify that registers used by the jump are not clobbered
by the instruction being moved. */
&& ! regs_set_between_p (PATTERN (temp), temp3,
&& ! regs_set_between_p (PATTERN (temp),
PREV_INSN (temp3),
NEXT_INSN (temp3))
&& invert_jump (temp, JUMP_LABEL (insn)))
{