[PATCH] D145497: [AArch64] Allocate emergency spillslot when using fixed-length SVE.
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 7 05:42:39 PST 2023
sdesmalen created this revision.
sdesmalen added reviewers: paulwalker-arm, efriedma, peterwaller-arm.
Herald added subscribers: ctetreau, hiraditya, kristof.beyls, tschuett.
Herald added a project: All.
sdesmalen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The SVE reg+imm addressing modes require the immediate to be a multiple
of VL. When it is not a multiple of VL, it can use `0` for the immediate
and use an `add` instruction to materialise the base-register.
When using SVE instructions to access fixed-length vectors on the stack
that are not VL-aligned, the frame should anticipate that it might require
an emergency spill-slot to accomodate for an extra 'add' to materialize
the base-address of the load when there are no free registers available.
Fixes https://github.com/llvm/llvm-project/issues/60918
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145497
Files:
llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
llvm/test/CodeGen/AArch64/framelayout-sve-scavengingslot.mir
llvm/test/CodeGen/AArch64/sve-fixed-ld2-alloca.ll
llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-ld2-alloca.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145497.503009.patch
Type: text/x-patch
Size: 9226 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230307/dbdf946c/attachment.bin>
More information about the llvm-commits
mailing list