[PATCH] D94401: [AArch64][SVE] Allow accesses to SVE stack objects to use frame pointer

Bradley Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 04:29:03 PST 2021


bsmith created this revision.
bsmith added reviewers: peterwaller-arm, joechrisellis, sdesmalen.
Herald added subscribers: NickHung, psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
bsmith requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The layout of the stack frame for SVE means that using the frame pointer
rather than the stack pointer for an access to an SVE stack object
removes the need for an additional add to jump over the non-SVE objects.

Likewise the opposite is true for non-SVE stack objects.

This patch allows for the former to be done by having HasFP return true
in the presence of both SVE and non-SVE stack objects, and also fixes a
minor issue whereby the later would not be done for certain offsets.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94401

Files:
  llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
  llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
  llvm/test/CodeGen/AArch64/debug-info-sve-dbg-value.mir
  llvm/test/CodeGen/AArch64/framelayout-sve.mir
  llvm/test/CodeGen/AArch64/sve-calling-convention-mixed.ll
  llvm/test/CodeGen/AArch64/sve-frame-registers.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94401.315758.patch
Type: text/x-patch
Size: 16844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210111/2ee42551/attachment.bin>


More information about the llvm-commits mailing list