diff options
author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-20 00:31:15 +0000 |
---|---|---|
committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-20 00:31:15 +0000 |
commit | 4db1469f863b2b9d82eff8d112a9471a4c94b079 (patch) | |
tree | 94eedd6796f702b3e750b75344a9180da4a76c79 /gcc/unroll.c | |
parent | a7ae1e597777179c8b1545a3b56518781f1de909 (diff) | |
download | gcc-4db1469f863b2b9d82eff8d112a9471a4c94b079.tar.gz |
PR optimization/7130
* loop.h (struct loop_info): Add "preconditioned".
* unroll.c (unroll_loop): Set it.
* doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55598 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index e0b0d36579d..c8201ed6336 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -1135,6 +1135,9 @@ unroll_loop (loop, insn_count, strength_reduce_p) /* Keep track of the unroll factor for the loop. */ loop_info->unroll_number = unroll_number; + /* And whether the loop has been preconditioned. */ + loop_info->preconditioned = loop_preconditioned; + /* For each biv and giv, determine whether it can be safely split into a different variable for each unrolled copy of the loop body. We precalculate and save this info here, since computing it is |