This is the mail archive of the
mailing list for the GCC project.
Re: GCC47 movmem breaks RA, GCC46 RA is fine
On 27/04/12 11:49, Richard Guenther wrote:
It feels to me that GCC46 version is better:
* no branch to subroutine memcpy;
* less stack usage (argument to enterl);
So, using our block copy (bc2) instruction is an optimisation, don't you
Yes, it inlines it. You may want to look at s390 which I believe has
a similar block-copy operation.
I am not sure I understood your comment. GCC46 generates the bc2 call
due to my implementation of movmemqi. If I remove it, as you suggested,
GCC47 will always call memcpy and will be worse off.
I will me looking at s390 for inspiration. Thanks for the suggestion.