Set the correct stack pointer register that should be saved or restored.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Akira Hatanaka 2011-12-20 23:28:36 +00:00
parent 06d738c76a
commit 056a1bc40f

View File

@ -231,7 +231,7 @@ MipsTargetLowering(MipsTargetMachine &TM)
setMinFunctionAlignment(2);
setStackPointerRegisterToSaveRestore(Mips::SP);
setStackPointerRegisterToSaveRestore(HasMips64 ? Mips::SP_64 : Mips::SP);
computeRegisterProperties();
setExceptionPointerRegister(Mips::A0);