aboutsummaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-04-26 23:47:16 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-04-26 23:47:16 -0700
commit56aba4a8b5221971ccfb59f144d8666905512179 (patch)
treeb8cad6b8afbe1fc073c09bebbb3dbc444bfc744a /gcc/flow.c
parent604617ba2a22e682ba2813a7782607c3b93ca7c2 (diff)
downloadgcc-56aba4a8b5221971ccfb59f144d8666905512179.zip
gcc-56aba4a8b5221971ccfb59f144d8666905512179.tar.gz
gcc-56aba4a8b5221971ccfb59f144d8666905512179.tar.bz2
flow.c (tidy_fallthru_edge): Don't delete the jump when it's a still-valid conditional jump.
* flow.c (tidy_fallthru_edge): Don't delete the jump when it's a still-valid conditional jump. From-SVN: r33468
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 23402d3..39449d3 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -2407,7 +2407,9 @@ tidy_fallthru_edge (e, b, c)
If block B consisted only of this single jump, turn it into a deleted
note. */
q = b->end;
- if (GET_CODE (q) == JUMP_INSN)
+ if (GET_CODE (q) == JUMP_INSN
+ && (simplejump_p (q)
+ || (b->succ == e && e->succ_next == NULL)))
{
#ifdef HAVE_cc0
/* If this was a conditional jump, we need to also delete