aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-12-29 10:25:45 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2003-12-29 09:25:45 +0000
commitf46a52d25219bfbdb22f8b8edb22c00f53490c33 (patch)
treecda1a7c97ed86014e223e48df31cab0ed427306e
parent66ec7e6993e096d3c69c7580983bfd67b977358f (diff)
downloadgcc-f46a52d25219bfbdb22f8b8edb22c00f53490c33.zip
gcc-f46a52d25219bfbdb22f8b8edb22c00f53490c33.tar.gz
gcc-f46a52d25219bfbdb22f8b8edb22c00f53490c33.tar.bz2
* toplev.c (rest_of_handle_loop_optimize): Enable LOOP_AUTO_UNROLL.
From-SVN: r75197
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/toplev.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1dc2c4d..b71bea3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2003-12-29 Jan Hubicka <jh@suse.cz>
+
+ * toplev.c (rest_of_handle_loop_optimize): Enable LOOP_AUTO_UNROLL.
+
2003-12-29 Phil Edwards <phil@codesourcery.com>
* doc/cppopts.texi: Use of -idirafter, -iprefix, -iwithprefix, and
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 2a56477..eb68ce8 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2975,7 +2975,7 @@ rest_of_handle_loop_optimize (tree decl, rtx insns)
free_bb_for_insn ();
if (flag_unroll_loops)
- do_unroll = 0; /* Having two unrollers is useless. */
+ do_unroll = LOOP_AUTO_UNROLL; /* Having two unrollers is useless. */
else
do_unroll = flag_old_unroll_loops ? LOOP_UNROLL : LOOP_AUTO_UNROLL;
do_prefetch = flag_prefetch_loop_arrays ? LOOP_PREFETCH : 0;