[llvm-commits] [llvm] r75995 - /llvm/trunk/lib/Target/SystemZ/SystemZRegisterInfo.cpp

Anton Korobeynikov asl at math.spbu.ru
Thu Jul 16 07:11:40 PDT 2009


Author: asl
Date: Thu Jul 16 09:11:40 2009
New Revision: 75995

URL: http://llvm.org/viewvc/llvm-project?rev=75995&view=rev
Log:
Do not forget to save R15 when we allocate stack frame

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=75995&r1=75994&r2=75995&view=diff

==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZRegisterInfo.cpp Thu Jul 16 09:11:40 2009
@@ -149,7 +149,8 @@
       /* FIXME: function calls eh_return */)
     MF.getRegInfo().setPhysRegUsed(SystemZ::R14D);
 
-  if (FFI->getObjectIndexEnd() != 0 || // Contains automatic variables
+  if (FFI->hasCalls() ||
+      FFI->getObjectIndexEnd() != 0 || // Contains automatic variables
       FFI->hasVarSizedObjects() // Function calls dynamic alloca's
       /* FIXME: function is varargs */)
     MF.getRegInfo().setPhysRegUsed(SystemZ::R15D);





More information about the llvm-commits mailing list