summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZRegisterInfo.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:08:15 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:08:15 +0000
commitc772c4408e85afad5c239b7212503e5746e2450b (patch)
tree1f4d3b661e5e632f330265e5390319a181056fd5 /lib/Target/SystemZ/SystemZRegisterInfo.cpp
parentc16cdc5de7a319523d69f4e335ffbfe21ec9348b (diff)
downloadllvm-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.cpp8
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);