diff options
author | Jan Hubicka <jh@suse.cz> | 2009-07-03 13:18:28 +0000 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2009-07-03 13:18:28 +0000 |
commit | 7b6d1f12efb28fc32277224dff00da5bf0e6e2f7 (patch) | |
tree | 5ae15df89724e96bf58d1a0b6e82cf43aa9b2617 /gcc/tree-ssa-loop.c | |
parent | 447a283f0ced2f67bcc327501265cf3be2e0d29d (diff) |
* gcc.dg/tree-ssa/loop-24.c: Update dump file matching; enable -O2.
* gcc.dg/tree-ssa/loop-25.c: Likewise.
* gcc.dg/tree-ssa/loop-26.c: Likewise.
* gcc.dg/tree-ssa/pr32044.c: Likewise.
* gcc.dg/tree-ssa/loop-29.c: Likewise.
* gcc.dg/tree-ssa/loop-10.c: Likewise.
* gnat.dg/loop_optimization6.adb: Enable -O2.
* ipa-pure-const.c (analyze): Update loop optimizer init.
* tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
try_remove_empty_loop, remove_empty_loops): Remove.
* tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
* tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
to mark regular loops as neccesary.
(degenerate_phi_p): New function.
(propagate_necessity, remove_dead_phis): Use it.
(forward_edge_to_pdom): Likewise.
(eliminate_unnecessary_stmts): Take care to remove uses of results of
virtual PHI nodes that became unreachable.
(perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
* tree-flow.h (remove_empty_loops): Remove.
* passes.c (init_optimization_passes): Remove.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@149206 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop.c')
-rw-r--r-- | gcc/tree-ssa-loop.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c index 33cb130e4ca..4dcdc02d2d6 100644 --- a/gcc/tree-ssa-loop.c +++ b/gcc/tree-ssa-loop.c @@ -433,37 +433,6 @@ struct gimple_opt_pass pass_scev_cprop = } }; -/* Remove empty loops. */ - -static unsigned int -tree_ssa_empty_loop (void) -{ - if (number_of_loops () <= 1) - return 0; - - return remove_empty_loops (); -} - -struct gimple_opt_pass pass_empty_loop = -{ - { - GIMPLE_PASS, - "empty", /* name */ - NULL, /* gate */ - tree_ssa_empty_loop, /* execute */ - NULL, /* sub */ - NULL, /* next */ - 0, /* static_pass_number */ - TV_COMPLETE_UNROLL, /* tv_id */ - PROP_cfg | PROP_ssa, /* properties_required */ - 0, /* properties_provided */ - 0, /* properties_destroyed */ - 0, /* todo_flags_start */ - TODO_dump_func | TODO_verify_loops - | TODO_ggc_collect /* todo_flags_finish */ - } -}; - /* Record bounds on numbers of iterations of loops. */ static unsigned int |