From 3d778616fd84e675d13b9c062b7b8e11400cf017 Mon Sep 17 00:00:00 2001 From: rguenth Date: Mon, 21 Mar 2005 15:52:44 +0000 Subject: 2005-03-21 Richard Guenther * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete unrolling if -fpeel-loops is specified, too. * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Remove superfluous check for flag_unroll_loops. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96808 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-ssa-loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tree-ssa-loop.c') diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c index 0e2a5a4c12a..50124706ec1 100644 --- a/gcc/tree-ssa-loop.c +++ b/gcc/tree-ssa-loop.c @@ -340,7 +340,7 @@ tree_complete_unroll (void) static bool gate_tree_complete_unroll (void) { - return flag_unroll_loops != 0; + return flag_peel_loops || flag_unroll_loops; } struct tree_opt_pass pass_complete_unroll = -- cgit v1.2.1