This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Another minor loop improvement


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]