]> 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:05:04 +0000 (16:05 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 12 Sep 2023 15:05:04 +0000 (16:05 +0100)
commit76d89da25af3064e80c9b7b584c678ff72b1f0bd
tree9867883ba5e382e72b2061bd30a3b92c2021980f
parent895e476f64c308dfdbf49693d0b1166c0b7733de
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.cc (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.cc