aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-07-21 17:26:03 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-07-21 17:26:03 -0700
commit5e1afb115ee0038eb3474176d8c56c2460a4274e (patch)
tree2ff7eb08105c0df70c8ebbd19873fcb13b68513d /gcc/loop.c
parentc67a1cf6a842249a064d479b455321e6663e4708 (diff)
downloadgcc-5e1afb115ee0038eb3474176d8c56c2460a4274e.zip
gcc-5e1afb115ee0038eb3474176d8c56c2460a4274e.tar.gz
gcc-5e1afb115ee0038eb3474176d8c56c2460a4274e.tar.bz2
loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
* loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS. * loop.c (strength_reduce): Update. * toplev.c (rest_of_compilation): Do unrolling in the first loop pass, not the second. From-SVN: r55634
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index c943c6d..1b8afd5 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -5320,7 +5320,7 @@ strength_reduce (loop, flags)
collected. Always unroll loops that would be as small or smaller
unrolled than when rolled. */
if ((flags & LOOP_UNROLL)
- || (!(flags & LOOP_FIRST_PASS)
+ || ((flags & LOOP_AUTO_UNROLL)
&& loop_info->n_iterations > 0
&& unrolled_insn_copies <= insn_count))
unroll_loop (loop, insn_count, 1);