diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2023-09-12 16:05:10 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2023-09-12 16:05:10 +0100 |
commit | ee5466ff4faca2076cc61f1f120d0b5062c8111c (patch) | |
tree | dec938d7b51c05e2e5617ae1ee463c796279434a /gcc/config/aarch64/aarch64.cc | |
parent | bc9dcdde80915d7585a21daa2b69f4adf4a1e3c1 (diff) | |
download | gcc-ee5466ff4faca2076cc61f1f120d0b5062c8111c.zip gcc-ee5466ff4faca2076cc61f1f120d0b5062c8111c.tar.gz gcc-ee5466ff4faca2076cc61f1f120d0b5062c8111c.tar.bz2 |
aarch64: Minor initial adjustment tweak
This patch just changes a calculation of initial_adjust
to one that makes it slightly more obvious that the total
adjustment is frame.frame_size.
gcc/
* config/aarch64/aarch64.cc (aarch64_layout_frame): Tweak
calculation of initial_adjust for frames in which all saves
are SVE saves.
Diffstat (limited to 'gcc/config/aarch64/aarch64.cc')
-rw-r--r-- | gcc/config/aarch64/aarch64.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 9578592..e40ccc7 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -8714,11 +8714,10 @@ aarch64_layout_frame (void) { /* Frame in which all saves are SVE saves: - sub sp, sp, hard_fp_offset + below_hard_fp_saved_regs_size + sub sp, sp, frame_size - bytes_below_saved_regs save SVE registers relative to SP sub sp, sp, bytes_below_saved_regs */ - frame.initial_adjust = (frame.bytes_above_hard_fp - + frame.below_hard_fp_saved_regs_size); + frame.initial_adjust = frame.frame_size - frame.bytes_below_saved_regs; frame.final_adjust = frame.bytes_below_saved_regs; } else if (frame.bytes_above_hard_fp.is_constant (&const_above_fp) |