[PATCH] D159196: [SME] Don't scavenge a spillslot in callee-save area in presence of streaming-mode changes.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 30 06:22:55 PDT 2023


sdesmalen created this revision.
sdesmalen added reviewers: david-arm, aemerson, dtemirbulatov.
Herald added a subscriber: hiraditya.
Herald added a project: All.
sdesmalen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

If no frame-pointer is available and the compiler has scavenged a
spill-slot in the callee-save area, the compiler may be forced to emit an
'addvl' inside the streaming-mode-changing call sequence when it needs to
fill (reload) an FP register being passed to the call.

We can avoid this entirely by disabling stack-slot scavenging when there
are streaming-mode-changing call-sequences in the function.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D159196

Files:
  llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
  llvm/test/CodeGen/AArch64/sme-disable-gisel-fisel.ll
  llvm/test/CodeGen/AArch64/sme-streaming-body.ll
  llvm/test/CodeGen/AArch64/sme-streaming-interface.ll
  llvm/test/CodeGen/AArch64/sme-streaming-mode-changing-call-disable-stackslot-scavenging.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159196.554691.patch
Type: text/x-patch
Size: 16513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230830/f718bdf6/attachment.bin>


More information about the llvm-commits mailing list