[PATCH] Optimize ix86_expand_clrmem

Richard Henderson rth@redhat.com
Thu Aug 5 17:45:00 GMT 2004


On Thu, Aug 05, 2004 at 09:28:12AM -0400, Jakub Jelinek wrote:
> 	* config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
> 	the places where it is actually needed.  Don't use repz; stosb
> 	for -Os with sufficiently small constant sizes.
> 	For sufficiently small repz; stos{l,q} repeat counts use a sequence
> 	of stos{l,q} instructions instead.

Ok.


r~



More information about the Gcc-patches mailing list