This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Another minor loop improvement
- To: Jeffrey A Law <law at cygnus dot com>
- Subject: Re: Another minor loop improvement
- From: Richard Henderson <rth at cygnus dot com>
- Date: Wed, 25 Aug 1999 00:07:42 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <3547.935563707@upchuck.cygnus.com>
On Wed, Aug 25, 1999 at 12:48:27AM -0600, Jeffrey A Law wrote:
> + /* When we completely unroll a loop we will likely not need the
> increment
> + of the loop BIV and we will not need the conditional branch at the
> + end of the loop. */
> + unrolled_insn_copies = insn_count - 2;
> +
> + #ifdef HAVE_cc0
> + /* When we completely unroll a loop on a HAVE_cc0 machine we will not
> + need the comparison before the conditional branch at the end of the
> + loop. */
> + unrolled_insn_copies = insn_count - 2;
> + #endif
Did you mean to have two identical initializations here?
r~