Commit 1111ad78 by Kazu Hirata Committed by Kazu Hirata

tree-cfg.c (cleanup_tree_cfg): Remove variable something_changed.

	* tree-cfg.c (cleanup_tree_cfg): Remove variable
	something_changed.  Simplify the while loop.

From-SVN: r88564
parent fdd5d9e2
2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
* tree-cfg.c (cleanup_tree_cfg): Remove variable
something_changed. Simplify the while loop.
2004-10-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* builtins.c (expand_builtin_memmove): Delete duplicate code
......
......@@ -712,7 +712,6 @@ make_goto_expr_edges (basic_block bb)
bool
cleanup_tree_cfg (void)
{
bool something_changed = true;
bool retval = false;
timevar_push (TV_TREE_CLEANUP_CFG);
......@@ -723,16 +722,12 @@ cleanup_tree_cfg (void)
/* thread_jumps() sometimes leaves further transformation
opportunities for itself, so iterate on it until nothing
changes. */
while (something_changed)
while (thread_jumps ())
{
something_changed = thread_jumps ();
/* delete_unreachable_blocks() does its job only when
thread_jumps() produces more unreachable blocks. */
if (something_changed)
delete_unreachable_blocks ();
retval |= something_changed;
delete_unreachable_blocks ();
retval = true;
}
#ifdef ENABLE_CHECKING
......
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