This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: loop.c BCT fix
- To: David Edelsohn <dje at watson dot ibm dot com>
- Subject: Re: loop.c BCT fix
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 16 Sep 1998 01:02:44 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <9809130317.AA25200@marc.watson.ibm.com>you write:
> Can I install the following patch which is a beginning at fixing
> the branch on counter optimization? There still is some more subtle
> problem, but this fixes the most significant failure.
>
> Thanks, David
>
> * toplev.c (rest_of_compilation): Set bct_p on second call to
> loop_optimize.
> * loop.c (loop_optimize, scan_loop, strength_reduce): New argument
> bct_p.
> (strength_reduce): Only call analyze_loop_iterations and
> insert_bct if bct_p set.
> (check_dbra_loop): Fix typo.
> (insert_bct, instrument_loop_bct): Use word_mode instead of SImode.
> * rtl.h (loop_optimize): Update prototype.
Looks good to me. Thanks for taking care of this.
jeff