[PATCH] D84043: [AArch64][SVE] Fix CFA calculation in presence of SVE objects.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 09:41:01 PDT 2020


sdesmalen created this revision.
sdesmalen added reviewers: efriedma, pcc.
Herald added subscribers: danielkiss, psnobl, hiraditya, kristof.beyls, tschuett, aprantl.
Herald added a reviewer: rengolin.
Herald added a project: LLVM.

The CFA is calculated as (SP/FP + offset), but when there are
SVE objects on the stack the SP offset is partly scalable and
should instead be expressed as the DWARF expression:

  SP + offset + scalable_offset * VG

where VG is the Vector Granule register, containing the
number of 64bits 'granules' in a scalable vector.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84043

Files:
  llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
  llvm/lib/Target/AArch64/AArch64FrameLowering.h
  llvm/lib/Target/AArch64/AArch64RegisterInfo.td
  llvm/lib/Target/AArch64/AArch64StackOffset.h
  llvm/test/CodeGen/AArch64/framelayout-sve.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84043.278810.patch
Type: text/x-patch
Size: 19544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200717/7a18b05b/attachment.bin>


More information about the llvm-commits mailing list