[all-commits] [llvm/llvm-project] fd6584: [AArch64][SVE] Fix CFA calculation in presence of ...
sdesmalen-arm via All-commits
all-commits at lists.llvm.org
Tue Aug 4 03:51:35 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: fd6584a22043b254a323635c142b28ce80ae5b5b
https://github.com/llvm/llvm-project/commit/fd6584a22043b254a323635c142b28ce80ae5b5b
Author: Sander de Smalen <sander.desmalen at arm.com>
Date: 2020-08-04 (Tue, 04 Aug 2020)
Changed paths:
M llvm/include/llvm/MC/MCDwarf.h
M llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
M llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
M llvm/lib/Target/AArch64/AArch64FrameLowering.h
M llvm/lib/Target/AArch64/AArch64RegisterInfo.td
M llvm/lib/Target/AArch64/AArch64StackOffset.h
M llvm/test/CodeGen/AArch64/framelayout-sve.mir
M llvm/test/CodeGen/AArch64/sve-trunc.ll
Log Message:
-----------
[AArch64][SVE] Fix CFA calculation in presence of SVE objects.
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.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D84043
Commit: bb3344c7d8c2703c910dd481ada43ecaf11536a6
https://github.com/llvm/llvm-project/commit/bb3344c7d8c2703c910dd481ada43ecaf11536a6
Author: Sander de Smalen <sander.desmalen at arm.com>
Date: 2020-08-04 (Tue, 04 Aug 2020)
Changed paths:
M llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
M llvm/lib/Target/AArch64/AArch64FrameLowering.h
M llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp
M llvm/lib/Target/AArch64/AArch64RegisterInfo.h
M llvm/test/CodeGen/AArch64/framelayout-sve.mir
M llvm/test/CodeGen/AArch64/sve-trunc.ll
Log Message:
-----------
[AArch64][SVE] Add missing unwind info for SVE registers.
This patch adds a CFI entry for each SVE callee saved register
that needs unwind info at an offset from the CFA. The offset is
a DWARF expression because the offset is partly scalable.
The CFI entries only cover a subset of the SVE callee-saves and
only encodes the lower 64-bits, thus implementing the lowest
common denominator ABI. Existing unwinders may support VG but
only restore the lower 64-bits.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D84044
Compare: https://github.com/llvm/llvm-project/compare/79b44a4d4700...bb3344c7d8c2
More information about the All-commits
mailing list