[SystemZ] Bugfix for backchain with packed-stack
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 27 Feb 2020 16:59:37 +0000 (08:59 -0800)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 3 Mar 2020 14:03:01 +0000 (15:03 +0100)
commit237625757a1f4a42c2efcf4bb16419a07f74e196
tree0067d8413ffa63cbd00475ec684005ebefc7ac1a
parentc68d35d78c8bb53c8f262d676522acebccf70a65
[SystemZ]  Bugfix for backchain with packed-stack

The incoming back chain slot was implicitly allocated whenever a GPR was
saved in SystemZFrameLowering::getRegSpillOffset(), but in cases where no
GPRs were saved/restored this did not take effect.

Review: Ulrich Weigand

Differential Revision: https://reviews.llvm.org/D75367
llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
llvm/test/CodeGen/SystemZ/frame-25.ll [new file with mode: 0644]