]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Use local frame vars in shrink-wrapping code
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 12 Sep 2023 15:19:43 +0000 (16:19 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 12 Sep 2023 15:19:43 +0000 (16:19 +0100)
commit52816ab48f97968f3fbfb5656250f3de7c00166d
treefdde6fa9829fc50a4a20ab696955a31249e1918f
parent2eb8e5cba7408e2a4016a8f5c48e4980abdd1d08
aarch64: Use local frame vars in shrink-wrapping code

aarch64_layout_frame uses a shorthand for referring to
cfun->machine->frame:

  aarch64_frame &frame = cfun->machine->frame;

This patch does the same for some other heavy users of the structure.
No functional change intended.

gcc/
* config/aarch64/aarch64.c (aarch64_save_callee_saves): Use
a local shorthand for cfun->machine->frame.
(aarch64_restore_callee_saves, aarch64_get_separate_components):
(aarch64_process_components): Likewise.
(aarch64_allocate_and_probe_stack_space): Likewise.
(aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
(aarch64_layout_frame): Use existing shorthand for one more case.
gcc/config/aarch64/aarch64.c