[aarch64-port-dev ] Optimize pushes and pops
Andrew Haley
aph at redhat.com
Mon May 12 20:45:40 UTC 2014
On 05/12/2014 08:18 PM, Edward Nevill wrote:
> On Mon, 2014-05-12 at 19:42 +0100, Andrew Haley wrote:
>> On 05/12/2014 05:33 PM, Andrew Haley wrote:
>> 0x00007fffd10d2030: ldp x1, x2, [sp]
>> 0x00007fffd10d2034: ldp x3, x4, [sp,#16]
>> 0x00007fffd10d2038: ldp x5, x6, [sp,#32]
>> 0x00007fffd10d203c: add sp, sp, #0x30
>>
>> Andrew.
>>
>
> What about
>
> ldp x3, x4, [sp, #16]
> ldp x5, x6, [sp, #32]
> ldp x1, x2, [sp], #48
>
> Is this better or worse?
Looks better. I don't know if it'll be any faster, but it is shorter.
> Do we need to keep a count of words_pushed? This must == count at the end.
OK, ta.
Andrew.
More information about the aarch64-port-dev
mailing list