Commit 37f7367a by Richard Guenther Committed by Richard Biener

tree-ssa-loop.c (gate_tree_complete_unroll): Run complete unrolling if…

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
parent e5a8980b
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> 2005-03-21 Uros Bizjak <uros@kss-loka.si>
* optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint. * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
......
...@@ -168,9 +168,6 @@ try_unroll_loop_completely (struct loops *loops ATTRIBUTE_UNUSED, ...@@ -168,9 +168,6 @@ try_unroll_loop_completely (struct loops *loops ATTRIBUTE_UNUSED,
if (n_unroll) if (n_unroll)
{ {
if (!flag_unroll_loops)
return false;
old_cond = COND_EXPR_COND (cond); old_cond = COND_EXPR_COND (cond);
COND_EXPR_COND (cond) = dont_exit; COND_EXPR_COND (cond) = dont_exit;
modify_stmt (cond); modify_stmt (cond);
......
...@@ -340,7 +340,7 @@ tree_complete_unroll (void) ...@@ -340,7 +340,7 @@ tree_complete_unroll (void)
static bool static bool
gate_tree_complete_unroll (void) gate_tree_complete_unroll (void)
{ {
return flag_unroll_loops != 0; return flag_peel_loops || flag_unroll_loops;
} }
struct tree_opt_pass pass_complete_unroll = struct tree_opt_pass pass_complete_unroll =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment