[llvm-commits] [llvm] r147012 - /llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
Akira Hatanaka
ahatanaka at mips.com
Tue Dec 20 15:28:36 PST 2011
Author: ahatanak
Date: Tue Dec 20 17:28:36 2011
New Revision: 147012
URL: http://llvm.org/viewvc/llvm-project?rev=147012&view=rev
Log:
Set the correct stack pointer register that should be saved or restored.
Modified:
llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp?rev=147012&r1=147011&r2=147012&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp Tue Dec 20 17:28:36 2011
@@ -231,7 +231,7 @@
setMinFunctionAlignment(2);
- setStackPointerRegisterToSaveRestore(Mips::SP);
+ setStackPointerRegisterToSaveRestore(HasMips64 ? Mips::SP_64 : Mips::SP);
computeRegisterProperties();
setExceptionPointerRegister(Mips::A0);
More information about the llvm-commits
mailing list