diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-22 00:26:03 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-22 00:26:03 +0000 |
commit | eb9d297d477510ae5d794e9d136c395362df1e18 (patch) | |
tree | 2ff7eb08105c0df70c8ebbd19873fcb13b68513d /gcc/loop.c | |
parent | 2d8fe5d004f9b3fb52ea63fc74aca6d70f1f5fa9 (diff) | |
download | gcc-eb9d297d477510ae5d794e9d136c395362df1e18.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55634 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop.c b/gcc/loop.c index c943c6d8905..1b8afd50ddc 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); |