From ee8c1b05d53213625231c9df895501823b19d44c Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Wed, 20 Dec 2006 15:15:53 +0100 Subject: loop-unswitch.c (unswitch_loop): Update arguments of duplicate_loop_to_header_edge call. * loop-unswitch.c (unswitch_loop): Update arguments of duplicate_loop_to_header_edge call. * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Ditto. * loop-unroll.c (peel_loop_completely, unroll_loop_constant_iterations, unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid): Ditto. * cfgloopmanip.c (loop_version): Ditto. (duplicate_loop_to_header_edge): Change type of to_remove to VEC(edge), remove n_to_remove argument. * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge): Change type of to_remove to VEC(edge), remove n_to_remove argument. (tree_unroll_loop): Update arguments of tree_duplicate_loop_to_header_edge call. * cfghooks.c (cfg_hook_duplicate_loop_to_header_edge): Change type of to_remove to VEC(edge), remove n_to_remove argument. * cfghooks.h (struct cfg_hooks): Type of cfg_hook_duplicate_loop_to_header_edge changed. (cfg_hook_duplicate_loop_to_header_edge): Declaration changed. * cfgloop.h (duplicate_loop_to_header_edge): Ditto. * tree-flow.h (tree_duplicate_loop_to_header_edge): Ditto. From-SVN: r120074 --- gcc/tree-ssa-loop-ivcanon.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gcc/tree-ssa-loop-ivcanon.c') diff --git a/gcc/tree-ssa-loop-ivcanon.c b/gcc/tree-ssa-loop-ivcanon.c index c26727a808d..fa92a689809 100644 --- a/gcc/tree-ssa-loop-ivcanon.c +++ b/gcc/tree-ssa-loop-ivcanon.c @@ -223,8 +223,6 @@ try_unroll_loop_completely (struct loop *loop, if (n_unroll) { sbitmap wont_exit; - edge *edges_to_remove = XNEWVEC (edge, n_unroll); - unsigned int n_to_remove = 0; old_cond = COND_EXPR_COND (cond); COND_EXPR_COND (cond) = dont_exit; @@ -237,8 +235,7 @@ try_unroll_loop_completely (struct loop *loop, if (!tree_duplicate_loop_to_header_edge (loop, loop_preheader_edge (loop), n_unroll, wont_exit, - exit, edges_to_remove, - &n_to_remove, + exit, NULL, DLTHE_FLAG_UPDATE_FREQ | DLTHE_FLAG_COMPLETTE_PEEL)) { @@ -246,11 +243,9 @@ try_unroll_loop_completely (struct loop *loop, update_stmt (cond); free_original_copy_tables (); free (wont_exit); - free (edges_to_remove); return false; } free (wont_exit); - free (edges_to_remove); free_original_copy_tables (); } -- cgit v1.2.1