Skip to content

Aarch64: shorten function preludes by using pre-indexed store-pair instructions#583

Open
xavierleroy wants to merge 3 commits into
masterfrom
aarch64-stp
Open

Aarch64: shorten function preludes by using pre-indexed store-pair instructions#583
xavierleroy wants to merge 3 commits into
masterfrom
aarch64-stp

Conversation

@xavierleroy
Copy link
Copy Markdown
Contributor

In the common case (small stack frame, no stack-allocated function arguments), this saves 2 instructions per prelude. In the worst case, it's the same number of instructions as we have today.

When applicable, this produces 2 instructions (instead of 4) for
allocating the stack frame and saving the link and the return address.
Even when the stack frame is too big for a preindexed store pair,
we can use a SP decrement followed by a store pair, saving one instruction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant