Commit 2f52c531 by J"orn Rennecke Committed by Joern Rennecke

cfgcleanup.c (try_simplify_condjump): Update test to make sure we have a…

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
parent 894ca2c9
2004-06-16 J"orn Rennecke <joern.rennecke@superh.com>
* cfgcleanup.c (try_simplify_condjump): Update test to make
sure we have a conditional branch around am unconditional branch.
2004-06-16 Daniel Berlin <dberlin@dberlin.org>
* tree-cfg.c (pass_split_crit_edge): Give it a name and a dump file.
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment