summaryrefslogtreecommitdiff
path: root/gcc/loop-unroll.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2005-08-03 15:34:49 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2005-08-03 13:34:49 +0000
commit178df94ff18a589455749496b4cd6888feb567b0 (patch)
tree1a926b9bc202452ffb1c89f9db59da5c72ea357e /gcc/loop-unroll.c
parent4164b2fb1628493c3b529b1e9ee045a504f44a0e (diff)
downloadgcc-178df94ff18a589455749496b4cd6888feb567b0.tar.gz
cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
* cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag. * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case profile updating for complette unrolling. * loop-unroll.c (peel_loop_completely): Use it. * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise. (tree_unroll_loops_completely): Disable code growing unrolling of cold loops. * update-conroll.c: New testcase. * update-conroll-2.c: New testcase. From-SVN: r102687
Diffstat (limited to 'gcc/loop-unroll.c')
-rw-r--r--gcc/loop-unroll.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c
index deeca2da8d6..8293448f5cf 100644
--- a/gcc/loop-unroll.c
+++ b/gcc/loop-unroll.c
@@ -520,6 +520,7 @@ peel_loop_completely (struct loops *loops, struct loop *loop)
wont_exit, desc->out_edge,
remove_edges, &n_remove_edges,
DLTHE_FLAG_UPDATE_FREQ
+ | DLTHE_FLAG_COMPLETTE_PEEL
| (opt_info
? DLTHE_RECORD_COPY_NUMBER : 0));
gcc_assert (ok);