[PATCH] Do not generate a __morestack prologue, for functions with a stack of size zero

Florian Zeitz florob at babelmonkeys.de
Wed May 21 19:51:41 PDT 2014


Hi nadav,

When segmented stacks are used, this omits the usual __morestack prologue on functions that do not perform any stack allocations.
This ought to be valid since these functions never need to grow the stack.
This is particularly beneficial to small functions, where the prologue would otherwise outweigh the actual code.

http://reviews.llvm.org/D3863

Files:
  lib/Target/ARM/ARMFrameLowering.cpp
  lib/Target/X86/X86FrameLowering.cpp
  test/CodeGen/ARM/segmented-stacks.ll
  test/CodeGen/Thumb/segmented-stacks.ll
  test/CodeGen/X86/segmented-stacks.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3863.9675.patch
Type: text/x-patch
Size: 7881 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140522/50588a90/attachment.bin>


More information about the llvm-commits mailing list