diff options
author | Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl> | 1998-12-01 16:06:35 +0100 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1998-12-01 07:06:35 -0800 |
commit | 1f5fb51fab42df42da3117a9fcaebff33294a6e9 (patch) | |
tree | 68c940d840d97dd14372a89ea9fa0f7f46c609c8 /gcc/jump.c | |
parent | 45c85c4e716882cb15fdf1922951d79cb5cd75f5 (diff) | |
download | gcc-1f5fb51fab42df42da3117a9fcaebff33294a6e9.zip gcc-1f5fb51fab42df42da3117a9fcaebff33294a6e9.tar.gz gcc-1f5fb51fab42df42da3117a9fcaebff33294a6e9.tar.bz2 |
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
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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))) { |