Re: [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization

Arjan van de Ven
2007-06-24T22:15:53Z

> > I think all these benefits are the gcc's __builtin_memset optimization
> > than the explicit call to memset.
>
> ... or from complex memset() implementation (some chips even didn't do
> `rep' fast enough somehow). Maybe code like below will be acceptable for
> both optimizers and maintainers?

we should just alias our memset to the __builtin one, and then provide a
generic one from lib/ for the cases gcc needs to do a fallback.