aboutsummaryrefslogtreecommitdiff
path: root/gcc/passes.c
diff options
context:
space:
mode:
authorZdenek Dvorak <dvorakz@suse.cz>2005-07-12 01:59:17 +0200
committerZdenek Dvorak <rakdver@gcc.gnu.org>2005-07-11 23:59:17 +0000
commitb7eae7b8d19f531d0ef3a1efb1fdacfdbc5bfc92 (patch)
tree2dbef04c2f2db68628a4762f85cddb33c11d1be9 /gcc/passes.c
parent70028b61459cb2089d18bbd42d582c3411a9edfc (diff)
downloadgcc-b7eae7b8d19f531d0ef3a1efb1fdacfdbc5bfc92.zip
gcc-b7eae7b8d19f531d0ef3a1efb1fdacfdbc5bfc92.tar.gz
gcc-b7eae7b8d19f531d0ef3a1efb1fdacfdbc5bfc92.tar.bz2
tree-flow.h (remove_empty_loops, [...]): Declare.
* tree-flow.h (remove_empty_loops, single_dom_exit): Declare. * passes.c (init_optimization_passes): Add pass_empty_loop. * tree-pass.h (pass_empty_loop): Declare. * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop, try_remove_empty_loop, remove_empty_loops): New functions. * tree-ssa-loop-ivopts.c (single_dom_exit): Export. * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New. * gcc.dg/tree-ssa/loop-10.c: New test. From-SVN: r101901
Diffstat (limited to 'gcc/passes.c')
-rw-r--r--gcc/passes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/passes.c b/gcc/passes.c
index 04c60a5..1356dc1 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -554,6 +554,7 @@ init_optimization_passes (void)
NEXT_PASS (pass_lim);
NEXT_PASS (pass_unswitch);
NEXT_PASS (pass_scev_cprop);
+ NEXT_PASS (pass_empty_loop);
NEXT_PASS (pass_record_bounds);
NEXT_PASS (pass_linear_transform);
NEXT_PASS (pass_iv_canon);