diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-10 15:15:48 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-10 15:15:48 +0000 |
commit | cc2e708d72ad3d1e456bd31e644fcfe368dd6ba5 (patch) | |
tree | cb402361427a0ac2783f5f9973e729622c3eafa5 /gcc/jump.c | |
parent | de4ff3bbec5fdd367f470827692664d9d75ef184 (diff) | |
download | gcc-cc2e708d72ad3d1e456bd31e644fcfe368dd6ba5.tar.gz |
* ifcvt.c (merge_if_block): Use any_uncondjump_p, not simplejump_p
to determine if a block has an unconditional jump at its end.
* jump.c (jump_optimize_1): When converting a conditional jump
to an unconditional jump, build the jump using gen_jump instead
of just modify operands in-place.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41939 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/jump.c b/gcc/jump.c index 314a20bb029..68adb835890 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -608,8 +608,9 @@ jump_optimize_1 (f, cross_jump, noop_moves, after_regscan, do_cross_jump (insn, newjpos, newlpos); /* Make the old conditional jump into an unconditional one. */ - SET_SRC (PATTERN (insn)) - = gen_rtx_LABEL_REF (VOIDmode, JUMP_LABEL (insn)); + PATTERN (insn) + = gen_jump (gen_rtx_LABEL_REF (VOIDmode, + JUMP_LABEL (insn))); INSN_CODE (insn) = -1; emit_barrier_after (insn); /* Add to jump_chain unless this is a new label |