memset() Optimization on x86-32 bit
Ian Lance Taylor
ian@airs.com
Sun Aug 28 22:46:00 GMT 2005
Kevin McBride <kevin@planetsaphire.com> writes:
> If you look closely, you can see that %edi can be automatically loaded
> directly without problems, and that (%eax) can be directly loaded into
> (%esp). Is this behavior intentional (for bugs I don't know about in
> earlier processors) or could this optimization be fixed to use less
> instructions?
>From the code you presented, I expect this optimization can be fixed.
But it's difficult to work with an incomplete program fragment.
Please open a PR at http://gcc.gnu.org/bugzilla/ with the complete
preprocessed source code for a file showing the problem. Thanks.
Ian
More information about the Gcc
mailing list