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


> > The problem is fixed by appropriately defining CLEAR_RATIO and
> > CLEAR_BY_PIECES_P in an analogous way to MOVE_RATIO and
> > MOVE_BY_PIECES_P, and then use this latter macro in clear_storage.
>
> Why not default CLEAR_RATIO expressed in terms of MOVE_RATIO?

The default value of MOVE_RATIO is affected by HAVE_movstrsi,
whereas the default value of CLEAR_RATIO is affected by
HAVE_clrstrsi.

I'm sorry if this wasn't clear from the patches context, but the
"#if defined" condition is quite different from the original.

Backends that have defined MOVE_RATIO may have done so accounting
for the presence or absence of block move instructions.  These
factors may be quite different for CLEAR_RATIO, depending upon
block clear instructions.

Certainly on the MIPS :>

Roger
--


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