[llvm-branch-commits] [llvm-branch] r73469 - /llvm/branches/Apple/Bender/lib/Target/X86/X86RegisterInfo.cpp

Bill Wendling isanbard at gmail.com
Mon Jun 15 21:13:00 PDT 2009


Author: void
Date: Mon Jun 15 23:13:00 2009
New Revision: 73469

URL: http://llvm.org/viewvc/llvm-project?rev=73469&view=rev
Log:
There doesn't seem to be a reason to move the save FP stuff.

Modified:
    llvm/branches/Apple/Bender/lib/Target/X86/X86RegisterInfo.cpp

Modified: llvm/branches/Apple/Bender/lib/Target/X86/X86RegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Bender/lib/Target/X86/X86RegisterInfo.cpp?rev=73469&r1=73468&r2=73469&view=diff

==============================================================================
--- llvm/branches/Apple/Bender/lib/Target/X86/X86RegisterInfo.cpp (original)
+++ llvm/branches/Apple/Bender/lib/Target/X86/X86RegisterInfo.cpp Mon Jun 15 23:13:00 2009
@@ -662,13 +662,6 @@
      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 @@
     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));
+  }
 }
 
 





More information about the llvm-branch-commits mailing list