aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop-unswitch.c
diff options
context:
space:
mode:
authorZdenek Dvorak <dvorakz@suse.cz>2006-12-20 15:15:53 +0100
committerZdenek Dvorak <rakdver@gcc.gnu.org>2006-12-20 14:15:53 +0000
commitee8c1b05d53213625231c9df895501823b19d44c (patch)
treec833734dce382efda016f8ef594a2fe91177e6ef /gcc/loop-unswitch.c
parentc882a2c2384d367d612ab1ce12030d6900d216c9 (diff)
downloadgcc-ee8c1b05d53213625231c9df895501823b19d44c.zip
gcc-ee8c1b05d53213625231c9df895501823b19d44c.tar.gz
gcc-ee8c1b05d53213625231c9df895501823b19d44c.tar.bz2
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
Diffstat (limited to 'gcc/loop-unswitch.c')
-rw-r--r--gcc/loop-unswitch.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/loop-unswitch.c b/gcc/loop-unswitch.c
index 82cf1ea..38706d1 100644
--- a/gcc/loop-unswitch.c
+++ b/gcc/loop-unswitch.c
@@ -410,14 +410,9 @@ unswitch_loop (struct loop *loop, basic_block unswitch_on, rtx cond, rtx cinsn)
irred_flag = entry->flags & EDGE_IRREDUCIBLE_LOOP;
entry->flags &= ~EDGE_IRREDUCIBLE_LOOP;
zero_bitmap = sbitmap_alloc (2);
- sbitmap_zero (zero_bitmap);
if (!duplicate_loop_to_header_edge (loop, entry, 1,
- zero_bitmap, NULL, NULL, NULL, 0))
- {
- sbitmap_free (zero_bitmap);
- return NULL;
- }
- sbitmap_free (zero_bitmap);
+ NULL, NULL, NULL, 0))
+ return NULL;
entry->flags |= irred_flag;
/* Record the block with condition we unswitch on. */