From 88a40e67adcb05e70e4c816ade1e80fe9fa1d374 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Wed, 17 Nov 2004 02:01:35 +0000 Subject: re PR tree-optimization/18519 (ICE: Segmentation fault with optimization) 2004-11-16 Daniel Berlin Fix PR tree-optimization/18519 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg. * tree-pass.h: Add TODO_cleanup_cfg. * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg. (ccp_finalize): Remove call to cleanup_cfg. * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func. (pass_cd_dce): Ditto. (perform_tree_ssa_dce): Remove call to cleanup_cfg, dump_function_to_file. * tree-ssa-loop-ch.c (copy_loop_headers): Remove call to cleanup_cfg. (pass_ch): Add TODO_cleanup_cfg. * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to cleanup_cfg. (pass_loop_done): Add TODO_cleanup_cfg. * tree-ssa-phiopt.c (pass_phiopt): Ditto. (tree_ssa_phiopt): Remove call to cleanup_cfg. From-SVN: r90783 --- gcc/tree-ssa-loop-ch.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'gcc/tree-ssa-loop-ch.c') diff --git a/gcc/tree-ssa-loop-ch.c b/gcc/tree-ssa-loop-ch.c index ecdf6f2cc2c..71d1bf2162c 100644 --- a/gcc/tree-ssa-loop-ch.c +++ b/gcc/tree-ssa-loop-ch.c @@ -214,11 +214,6 @@ copy_loop_headers (void) #endif loop_optimizer_finalize (loops, NULL); - - /* Run cleanup_tree_cfg here regardless of whether we have done anything, so - that we cleanup the blocks created in order to get the loops into a - canonical shape. */ - cleanup_tree_cfg (); } static bool @@ -240,7 +235,7 @@ struct tree_opt_pass pass_ch = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - (TODO_dump_func - | TODO_verify_ssa), /* todo_flags_finish */ + TODO_cleanup_cfg | TODO_dump_func + | TODO_verify_ssa, /* todo_flags_finish */ 0 /* letter */ }; -- cgit v1.2.1