From 1994bfea41d3cea4650b1678c13a70bf88186839 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 18 Jan 2007 15:56:33 +0100 Subject: tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand. * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand. * tree-tailcall (add_virtual_phis): Likewise. (optimize_tail_call): Return TODOs. (execute_tail_calls): Return TODOs. * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO. * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something changed. * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value): Cleanup cfg using TODO. * tree-flow.h (cleanup_tree_cfg_loop): Update prototype. * passes.c (execute_function_todo): When cleanup did something, remove unused locals. * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO. (make_edges): Don't cleanup_cfg. From-SVN: r120900 --- gcc/tree-cfgcleanup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/tree-cfgcleanup.c') diff --git a/gcc/tree-cfgcleanup.c b/gcc/tree-cfgcleanup.c index 13a3b0b..547b67a 100644 --- a/gcc/tree-cfgcleanup.c +++ b/gcc/tree-cfgcleanup.c @@ -574,7 +574,7 @@ cleanup_tree_cfg (void) /* Cleanup cfg and repair loop structures. */ -void +bool cleanup_tree_cfg_loop (void) { bool changed = cleanup_tree_cfg (); @@ -597,6 +597,7 @@ cleanup_tree_cfg_loop (void) #endif scev_reset (); } + return changed; } /* Merge the PHI nodes at BB into those at BB's sole successor. */ -- cgit v1.1