diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:08:15 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:08:15 +0000 |
commit | c772c4408e85afad5c239b7212503e5746e2450b (patch) | |
tree | 1f4d3b661e5e632f330265e5390319a181056fd5 /lib/Target/SystemZ/SystemZRegisterInfo.cpp | |
parent | c16cdc5de7a319523d69f4e335ffbfe21ec9348b (diff) | |
download | llvm-c772c4408e85afad5c239b7212503e5746e2450b.tar.gz llvm-c772c4408e85afad5c239b7212503e5746e2450b.tar.bz2 llvm-c772c4408e85afad5c239b7212503e5746e2450b.tar.xz |
Implement dynamic allocas
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZRegisterInfo.cpp')
-rw-r--r-- | lib/Target/SystemZ/SystemZRegisterInfo.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZRegisterInfo.cpp b/lib/Target/SystemZ/SystemZRegisterInfo.cpp index 087da0b0c4..fe116b6f79 100644 --- a/lib/Target/SystemZ/SystemZRegisterInfo.cpp +++ b/lib/Target/SystemZ/SystemZRegisterInfo.cpp @@ -85,7 +85,13 @@ void SystemZRegisterInfo:: eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const { if (!hasReservedCallFrame(MF)) { - assert(0 && "Not implemented yet!"); + // If the stack pointer can be changed after prologue, turn the + // adjcallstackup instruction into a 'sub R15, <amt>' and the + // adjcallstackdown instruction into 'add R15, <amt>' + MachineInstr *Old = I; + uint64_t Amount = Old->getOperand(0).getImm(); + + assert((Amount == 0) && "Not implemented yet!"); } MBB.erase(I); |