summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit432d4cd915d1b2b66dad8576b65d848956319002 (patch)
treeb5c9786f868682d0b0f647ae6295fa7076468af4 /llvm/lib
parent43d33bd6d265a4f90e0fb5431b76702cc7bcb3f5 (diff)
downloadbcm5719-llvm-432d4cd915d1b2b66dad8576b65d848956319002.tar.gz
bcm5719-llvm-432d4cd915d1b2b66dad8576b65d848956319002.zip
We already have reserved call frame regardless whether variable sized frame objects were present or not
llvm-svn: 75987
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp15
-rw-r--r--llvm/lib/Target/SystemZ/SystemZRegisterInfo.h2
2 files changed, 1 insertions, 16 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp b/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
index fe116b6f790..c30d5efd4bf 100644
--- a/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
+++ b/llvm/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);
}
diff --git a/llvm/lib/Target/SystemZ/SystemZRegisterInfo.h b/llvm/lib/Target/SystemZ/SystemZRegisterInfo.h
index 9430c874636..60ea036ed6f 100644
--- a/llvm/lib/Target/SystemZ/SystemZRegisterInfo.h
+++ b/llvm/lib/Target/SystemZ/SystemZRegisterInfo.h
@@ -46,7 +46,7 @@ struct SystemZRegisterInfo : public SystemZGenRegisterInfo {
BitVector getReservedRegs(const MachineFunction &MF) const;
- bool hasReservedCallFrame(MachineFunction &MF) const;
+ bool hasReservedCallFrame(MachineFunction &MF) const { return true; }
bool hasFP(const MachineFunction &MF) const;
int getFrameIndexOffset(MachineFunction &MF, int FI) const;
OpenPOWER on IntegriCloud