[PATCH] D157161: [CodeGen][AArch64] Don't split functions with a red zone on AArch64
Leonard Chan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 4 16:56:45 PDT 2023
leonardchan created this revision.
leonardchan added reviewers: shenhan, xur, snehasish, wenlei, mingmingl.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
leonardchan 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/D157161
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: D157161.547410.patch
Type: text/x-patch
Size: 7551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230804/75030780/attachment.bin>
More information about the llvm-commits
mailing list