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: loop.c BCT fix



  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


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