diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-06-16 04:12:45 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-06-16 04:12:45 +0000 |
commit | 92b17b550efdb1cb15117459f438a5bd1748776f (patch) | |
tree | 3827f99a017b37ff47e9fdf75d3c45cb2b2484a7 | |
parent | f6c6a7f1b7d2e53f5c5699d6c5703164638e0079 (diff) | |
download | llvm-92b17b550efdb1cb15117459f438a5bd1748776f.zip llvm-92b17b550efdb1cb15117459f438a5bd1748776f.tar.gz llvm-92b17b550efdb1cb15117459f438a5bd1748776f.tar.bz2 |
There doesn't seem to be a reason to move the save FP stuff.
llvm-svn: 73468
-rw-r--r-- | llvm/lib/Target/X86/X86RegisterInfo.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Target/X86/X86RegisterInfo.cpp b/llvm/lib/Target/X86/X86RegisterInfo.cpp index a9bbf3d..b461b8a 100644 --- a/llvm/lib/Target/X86/X86RegisterInfo.cpp +++ b/llvm/lib/Target/X86/X86RegisterInfo.cpp @@ -662,13 +662,6 @@ void X86RegisterInfo::emitFrameMoves(MachineFunction &MF, TargetFrameInfo::StackGrowsUp ? TD->getPointerSize() : -TD->getPointerSize()); - if (hasFP(MF)) { - // Save FP - MachineLocation FPDst(MachineLocation::VirtualFP, 2*stackGrowth); - MachineLocation FPSrc(FramePtr); - Moves.push_back(MachineMove(ReadyLabelId, FPDst, FPSrc)); - } - MachineLocation FPDst(hasFP(MF) ? FramePtr : StackPtr); MachineLocation FPSrc(MachineLocation::VirtualFP); Moves.push_back(MachineMove(ReadyLabelId, FPDst, FPSrc)); @@ -715,6 +708,13 @@ void X86RegisterInfo::emitFrameMoves(MachineFunction &MF, MachineLocation CSSrc(Reg); Moves.push_back(MachineMove(FrameLabelId, CSDst, CSSrc)); } + + if (hasFP(MF)) { + // Save FP + MachineLocation FPDst(MachineLocation::VirtualFP, 2*stackGrowth); + MachineLocation FPSrc(FramePtr); + Moves.push_back(MachineMove(ReadyLabelId, FPDst, FPSrc)); + } } |