public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-10998] aarch64: Minor initial adjustment tweak
@ 2023-09-12 15:21 Richard Sandiford
  0 siblings, 0 replies; only message in thread
From: Richard Sandiford @ 2023-09-12 15:21 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:bb4600071acc3a02db4f37ffb95c8495ad76a140

commit r11-10998-gbb4600071acc3a02db4f37ffb95c8495ad76a140
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Tue Sep 12 16:19:49 2023 +0100

    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.c (aarch64_layout_frame): Tweak
            calculation of initial_adjust for frames in which all saves
            are SVE saves.

Diff:
---
 gcc/config/aarch64/aarch64.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 779547d03447..0b8992ada747 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -7645,11 +7645,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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-12 15:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-12 15:21 [gcc r11-10998] aarch64: Minor initial adjustment tweak Richard Sandiford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).