From: J"orn Rennecke Date: Wed, 16 Jun 2004 18:03:11 +0000 (+0000) Subject: cfgcleanup.c (try_simplify_condjump): Update test to make sure we have a conditional... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f52c5316a90890e8185408429aca0dd331f9728;p=gcc.git cfgcleanup.c (try_simplify_condjump): Update test to make sure we have a conditional branch around am unconditional... * cfgcleanup.c (try_simplify_condjump): Update test to make sure we have a conditional branch around am unconditional branch. From-SVN: r83254 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99ae2a256a5..ace0f8d9a3c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-16 J"orn Rennecke + + * cfgcleanup.c (try_simplify_condjump): Update test to make + sure we have a conditional branch around am unconditional branch. + 2004-06-16 Daniel Berlin * tree-cfg.c (pass_split_crit_edge): Give it a name and a dump file. diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index 90c1f9b8f31..2616a23d07e 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -163,7 +163,8 @@ try_simplify_condjump (basic_block cbranch_block) unconditional branch. */ cbranch_dest_block = cbranch_jump_edge->dest; - if (!can_fallthru (jump_block, cbranch_dest_block)) + if (cbranch_dest_block == EXIT_BLOCK_PTR + || !can_fallthru (jump_block, cbranch_dest_block)) return false; /* Invert the conditional branch. */