[llvm-commits] [llvm] r123768 - in /llvm/trunk/lib/Target/Mips: MipsFrameLowering.cpp MipsFrameLowering.h
Bruno Cardoso Lopes
bruno.cardoso at gmail.com
Tue Jan 18 11:50:19 PST 2011
Author: bruno
Date: Tue Jan 18 13:50:18 2011
New Revision: 123768
URL: http://llvm.org/viewvc/llvm-project?rev=123768&view=rev
Log:
Ensure Mips::GP is properly reloaded after a function call. Patch by Sasa Stankovic
Modified:
llvm/trunk/lib/Target/Mips/MipsFrameLowering.cpp
llvm/trunk/lib/Target/Mips/MipsFrameLowering.h
Modified: llvm/trunk/lib/Target/Mips/MipsFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsFrameLowering.cpp?rev=123768&r1=123767&r2=123768&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsFrameLowering.cpp Tue Jan 18 13:50:18 2011
@@ -305,3 +305,10 @@
.addReg(Mips::SP).addImm(NumBytes);
}
}
+
+void MipsFrameLowering::
+processFunctionBeforeFrameFinalized(MachineFunction &MF) const {
+ const MipsRegisterInfo *RegInfo =
+ static_cast<const MipsRegisterInfo*>(MF.getTarget().getRegisterInfo());
+ RegInfo->processFunctionBeforeFrameFinalized(MF);
+}
Modified: llvm/trunk/lib/Target/Mips/MipsFrameLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsFrameLowering.h?rev=123768&r1=123767&r2=123768&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsFrameLowering.h (original)
+++ llvm/trunk/lib/Target/Mips/MipsFrameLowering.h Tue Jan 18 13:50:18 2011
@@ -39,6 +39,8 @@
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
bool hasFP(const MachineFunction &MF) const;
+
+ void processFunctionBeforeFrameFinalized(MachineFunction &MF) const;
};
} // End llvm namespace
More information about the llvm-commits
mailing list