diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 13:50:21 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 13:50:21 +0000 |
| commit | ba249e41f3ffa9e947b9173e3965385ec6324ffb (patch) | |
| tree | 865a42d49a94b5bccb18d306dd60eaf09e9bb924 /lib/Target/SystemZ/SystemZInstrInfo.cpp | |
| parent | 3c98c616c51a65c9af2ffcd7498be795049fcfad (diff) | |
Some preliminary call lowering
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrInfo.cpp')
| -rw-r--r-- | lib/Target/SystemZ/SystemZInstrInfo.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.cpp b/lib/Target/SystemZ/SystemZInstrInfo.cpp index cd89c0442f..53f8d29d6c 100644 --- a/lib/Target/SystemZ/SystemZInstrInfo.cpp +++ b/lib/Target/SystemZ/SystemZInstrInfo.cpp @@ -117,14 +117,21 @@ bool SystemZInstrInfo::spillCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector<CalleeSavedInfo> &CSI) const { - return false; + if (CSI.empty()) + return false; + + MachineFunction &MF = *MBB.getParent(); + SystemZMachineFunctionInfo *MFI = MF.getInfo<SystemZMachineFunctionInfo>(); + MFI->setCalleeSavedFrameSize(CSI.size() * 8); + + return true; } bool SystemZInstrInfo::restoreCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector<CalleeSavedInfo> &CSI) const { - return false; + return true; } unsigned |
