[llvm-commits] [llvm] r76008 - /llvm/trunk/lib/Target/SystemZ/SystemZRegisterInfo.cpp
Anton Korobeynikov
asl at math.spbu.ru
Thu Jul 16 07:16:46 PDT 2009
Author: asl
Date: Thu Jul 16 09:16:45 2009
New Revision: 76008
URL: http://llvm.org/viewvc/llvm-project?rev=76008&view=rev
Log:
Missed part of prev. patch
Modified:
llvm/trunk/lib/Target/SystemZ/SystemZRegisterInfo.cpp
Modified: llvm/trunk/lib/Target/SystemZ/SystemZRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZRegisterInfo.cpp?rev=76008&r1=76007&r2=76008&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZRegisterInfo.cpp Thu Jul 16 09:16:45 2009
@@ -261,10 +261,12 @@
// 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;
More information about the llvm-commits
mailing list