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/ifcvt.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/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index f40a656da34..b57cb138e6b 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -1745,7 +1745,7 @@ merge_if_block (test_bb, then_bb, else_bb, join_bb) /* There should sill be a branch at the end of the THEN or ELSE blocks taking us to our final destination. */ - if (! simplejump_p (combo_bb->end) + if (! any_uncondjump_p (combo_bb->end) && ! returnjump_p (combo_bb->end)) abort (); } |