This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: bzero optimization rarely does


On Thu, Jul 11, 2002 at 10:30:50PM -0600, Roger Sayle wrote:
> 	* expr.c [CLEAR_RATIO]: New macro defining the maximum number
> 	of move instructions to use when clearing memory, c.f. MOVE_RATIO.
> 	[CLEAR_BY_PIECES_P]: New macro, using CLEAR_RATIO, to determine
> 	whether clear_by_pieces should be used to clear storage.
> 	(clear_storage): Use CLEAR_BY_PIECES_P instead of MOVE_BY_PIECES_P.

I don't think it's worth adding more macros here.
Yes, the move macros are overloaded, but so what?

A target that has a movstrsi pattern, but not a
clrstrsi pattern is probably wrong anyway.  Especially
one like mips that has a hardwired zero register.


r~


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