]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2005-03-21 Richard Guenther <rguenth@gcc.gnu.org>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Mar 2005 15:52:44 +0000 (15:52 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Mar 2005 15:52:44 +0000 (15:52 +0000)
* 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/ChangeLog
gcc/tree-ssa-loop-ivcanon.c
gcc/tree-ssa-loop.c

index 05317acbbd06db353983b96764c57fc33fcb7a88..68a02d24975a1009c673ea030b266e6aa53bb8e6 100644 (file)
@@ -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.
index ab21465953a6f91237609b8e19e7b6970bed7965..a15f0235d18a678d9e5eaa588732b246ef4f6467 100644 (file)
@@ -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);
index 0e2a5a4c12a9ce5b35fa3790a2c646658816312a..50124706ec1c859a48b12a6cd7674501d84ebf27 100644 (file)
@@ -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 =