summaryrefslogtreecommitdiffstats
path: root/lib/Target/SystemZ/SystemZRegisterInfo.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:09:04 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:09:04 +0000
commit078e007c07b76ee871fa5dc9e8f8b17199766b41 (patch)
treef54b0ab6fa54f8793f4701ef9463299a21598520 /lib/Target/SystemZ/SystemZRegisterInfo.cpp
parent980d5503c3ff586209df7a1744212b59c72787cf (diff)
downloadexternal_llvm-078e007c07b76ee871fa5dc9e8f8b17199766b41.zip
external_llvm-078e007c07b76ee871fa5dc9e8f8b17199766b41.tar.gz
external_llvm-078e007c07b76ee871fa5dc9e8f8b17199766b41.tar.bz2
We already have reserved call frame regardless whether variable sized frame objects were present or not
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75987 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZRegisterInfo.cpp')
-rw-r--r--lib/Target/SystemZ/SystemZRegisterInfo.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/Target/SystemZ/SystemZRegisterInfo.cpp b/lib/Target/SystemZ/SystemZRegisterInfo.cpp
index fe116b6..c30d5ef 100644
--- a/lib/Target/SystemZ/SystemZRegisterInfo.cpp
+++ b/lib/Target/SystemZ/SystemZRegisterInfo.cpp
@@ -76,24 +76,9 @@ bool SystemZRegisterInfo::hasFP(const MachineFunction &MF) const {
return NoFramePointerElim || MFI->hasVarSizedObjects();
}
-bool SystemZRegisterInfo::hasReservedCallFrame(MachineFunction &MF) const {
- // FIXME: Should we always have reserved call frame?
- return !MF.getFrameInfo()->hasVarSizedObjects();
-}
-
void SystemZRegisterInfo::
eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
MachineBasicBlock::iterator I) const {
- if (!hasReservedCallFrame(MF)) {
- // 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);
}