[llvm-commits] [llvm] r123475 - /llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
Anton Korobeynikov
asl at math.spbu.ru
Fri Jan 14 13:57:58 PST 2011
Author: asl
Date: Fri Jan 14 15:57:58 2011
New Revision: 123475
URL: http://llvm.org/viewvc/llvm-project?rev=123475&view=rev
Log:
Cleanup
Modified:
llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.cpp?rev=123475&r1=123474&r2=123475&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Fri Jan 14 15:57:58 2011
@@ -291,10 +291,7 @@
bool HasFP = hasFP(MF);
// Calculate amount of bytes used for return address storing.
- int stackGrowth =
- (TM.getFrameLowering()->getStackGrowthDirection() ==
- TargetFrameLowering::StackGrowsUp ?
- TD->getPointerSize() : -TD->getPointerSize());
+ int stackGrowth = -TD->getPointerSize();
// FIXME: This is dirty hack. The code itself is pretty mess right now.
// It should be rewritten from scratch and generalized sometimes.
@@ -467,7 +464,6 @@
MachineLocation SPSrc(MachineLocation::VirtualFP, 2 * stackGrowth);
Moves.push_back(MachineMove(FrameLabel, SPDst, SPSrc));
} else {
- // FIXME: Verify & implement for FP
MachineLocation SPDst(StackPtr);
MachineLocation SPSrc(StackPtr, stackGrowth);
Moves.push_back(MachineMove(FrameLabel, SPDst, SPSrc));
@@ -627,7 +623,6 @@
-StackSize + stackGrowth);
Moves.push_back(MachineMove(Label, SPDst, SPSrc));
} else {
- // FIXME: Verify & implement for FP
MachineLocation SPDst(StackPtr);
MachineLocation SPSrc(StackPtr, stackGrowth);
Moves.push_back(MachineMove(Label, SPDst, SPSrc));
More information about the llvm-commits
mailing list