summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:16:45 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:16:45 +0000
commit5fd5c3efb628bad230e7017575556bb338ddc4a8 (patch)
tree6c2a5bcff1b15dbe0fe507627d4264a71f3edb81 /llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
parentb950f1961b8ffe20c4c54423241ce1f699ccfe3f (diff)
downloadbcm5719-llvm-5fd5c3efb628bad230e7017575556bb338ddc4a8.tar.gz
bcm5719-llvm-5fd5c3efb628bad230e7017575556bb338ddc4a8.zip
Missed part of prev. patch
llvm-svn: 76008
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp b/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
index dfd5336a204..95daf7b95bf 100644
--- a/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
@@ -261,10 +261,12 @@ void SystemZRegisterInfo::emitEpilogue(MachineFunction &MF,
// During callee-saved restores emission stack frame was not yet finialized
// (and thus - the stack size was unknown). Tune the offset having full stack
// size in hands.
- if (SystemZMFI->getCalleeSavedFrameSize()) {
+ if (StackSize || MFI->hasCalls()) {
assert((MBBI->getOpcode() == SystemZ::MOV64rmm ||
MBBI->getOpcode() == SystemZ::MOV64rm) &&
"Expected to see callee-save register restore code");
+ assert(MF.getRegInfo().isPhysRegUsed(SystemZ::R15D) &&
+ "Invalid stack frame calculation!");
unsigned i = 0;
MachineInstr &MI = *MBBI;
OpenPOWER on IntegriCloud