diff options
author | Richard Guenther <rguenth@gcc.gnu.org> | 2005-03-21 15:52:44 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2005-03-21 15:52:44 +0000 |
commit | 37f7367a4dd309eab4ec90143eb7e3f5c31cb1dc (patch) | |
tree | b6b7cd97f3de27237777ff437129a78c29b072c2 /gcc | |
parent | e5a8980bb96ce4809da58d3ced2bd4725305368a (diff) | |
download | gcc-37f7367a4dd309eab4ec90143eb7e3f5c31cb1dc.zip gcc-37f7367a4dd309eab4ec90143eb7e3f5c31cb1dc.tar.gz gcc-37f7367a4dd309eab4ec90143eb7e3f5c31cb1dc.tar.bz2 |
tree-ssa-loop.c (gate_tree_complete_unroll): Run complete unrolling if -fpeel-loops is specified, too.
2005-03-21 Richard Guenther <rguenth@gcc.gnu.org>
* 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.
From-SVN: r96808
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-ivcanon.c | 3 | ||||
-rw-r--r-- | gcc/tree-ssa-loop.c | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 05317ac..68a02d2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2005-03-21 Richard Guenther <rguenth@gcc.gnu.org> + + * 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. + 2005-03-21 Uros Bizjak <uros@kss-loka.si> * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint. diff --git a/gcc/tree-ssa-loop-ivcanon.c b/gcc/tree-ssa-loop-ivcanon.c index ab21465..a15f023 100644 --- a/gcc/tree-ssa-loop-ivcanon.c +++ b/gcc/tree-ssa-loop-ivcanon.c @@ -168,9 +168,6 @@ try_unroll_loop_completely (struct loops *loops ATTRIBUTE_UNUSED, if (n_unroll) { - if (!flag_unroll_loops) - return false; - old_cond = COND_EXPR_COND (cond); COND_EXPR_COND (cond) = dont_exit; modify_stmt (cond); diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c index 0e2a5a4..5012470 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 = |