[PATCH] D157127: [CodeGen][AArch64] Don't split functions with a red zone on AArch64

Daniel Hoekwater via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 4 12:03:29 PDT 2023


dhoekwater created this revision.
dhoekwater added reviewers: shenhan, xur, snehasish, wenlei, mingmingl.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dhoekwater requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Because unconditional branch relaxation on AArch64 grows the stack to
spill a register, splitting a function would cause the red zone to be
overwritten. Explicitly disable MFS for such functions.

Depends on D157063 <https://reviews.llvm.org/D157063>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157127

Files:
  llvm/include/llvm/CodeGen/TargetInstrInfo.h
  llvm/lib/CodeGen/MachineFunctionSplitter.cpp
  llvm/lib/CodeGen/TargetInstrInfo.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.h
  llvm/test/CodeGen/AArch64/machine-function-splitter.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157127.547303.patch
Type: text/x-patch
Size: 7551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230804/d56ab406/attachment.bin>


More information about the llvm-commits mailing list