diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-16 18:03:11 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-16 18:03:11 +0000 |
commit | f3fbd62def4f74f293a6e3a76a04e25cab10de4c (patch) | |
tree | 9a3938291000441915aa10fb9a81cc6cdeb82256 /gcc/cfgcleanup.c | |
parent | 5250373abaad4c66dd3fc4b6d0ef3ad1ecfdf82d (diff) | |
download | linaro-gcc-f3fbd62def4f74f293a6e3a76a04e25cab10de4c.tar.gz linaro-gcc-f3fbd62def4f74f293a6e3a76a04e25cab10de4c.tar.bz2 linaro-gcc-f3fbd62def4f74f293a6e3a76a04e25cab10de4c.zip |
* cfgcleanup.c (try_simplify_condjump): Update test to make
sure we have a conditional branch around am unconditional branch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83254 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r-- | gcc/cfgcleanup.c | 3 |
1 files changed, 2 insertions, 1 deletions
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. */ |