[PATCH] D48444: [X86] Insure split-stack prolog check is retained for sibling calls

Than McIntosh via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 21 10:25:52 PDT 2018


thanm created this revision.
Herald added subscribers: llvm-commits, srhines.
Herald added a reviewer: javed.absar.

If a routine with no stack frame makes a sibling call, we need to
preserve the stack space check even if the local stack frame is empty,
since the call target could be a "no-split" function (in which case
the linker needs to be able to fix up the prolog sequence in order to
switch to a larger stack).

This fixes PR37807.


Repository:
  rL LLVM

https://reviews.llvm.org/D48444

Files:
  lib/Target/ARM/ARMFrameLowering.cpp
  lib/Target/X86/X86FrameLowering.cpp
  test/CodeGen/ARM/segmented-stacks.ll
  test/CodeGen/X86/segmented-stacks.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48444.152341.patch
Type: text/x-patch
Size: 3821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180621/8ea93bf9/attachment-0001.bin>


More information about the llvm-commits mailing list