[PATCH] [SystemZ] Handling of aligned allocas.

Jonas Paulsson via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 23 03:05:00 PDT 2015


This patch implements dynamic realignment of stack objects with greater
alignment than stack alignment.

SystemZ maintains normal SP alignment always, and instead dynamically
realigns stack objects when needed.

The patch changes the behaviour in FunctionLoweringInfo, so that for a
target that has a non-realignable stack, aligned static allocas are
considered to be variable-sized objects and are handled with a
DYNAMIC_STACKALLOC node.

It would be good to group aligned allocas into a single big alloca,
but this is yet todo.

New test alloca-03.ll for aligned allocas.

Review and help from Ulrich Weigand.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SystemZ-Handling-of-aligned-allocas.patch
Type: text/x-patch
Size: 14787 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151023/8dc52226/attachment.bin>


More information about the llvm-commits mailing list