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: memset() Optimization on x86-32 bit


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


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