This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bzero optimization rarely does
- From: Richard Henderson <rth at redhat dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: Paul Koning <pkoning at equallogic dot com>, Hans-Peter Nilsson <hp at bitrange dot com>, gcc at gcc dot gnu dot org
- Date: Fri, 12 Jul 2002 09:52:15 -0700
- Subject: Re: bzero optimization rarely does
- References: <Pine.LNX.4.33.0207112220200.14604-100000@www.eyesopen.com>
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~