loop.c BCT fix

Jeffrey A Law law@cygnus.com
Wed Sep 16 00:14:00 GMT 1998

  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.


More information about the Gcc-patches mailing list