[llvm-commits] [llvm] r111847 - in /llvm/trunk: include/llvm/CodeGen/MachineFrameInfo.h lib/CodeGen/PrologEpilogInserter.cpp
Jim Grosbach
grosbach at apple.com
Mon Aug 23 14:29:29 PDT 2010
Author: grosbach
Date: Mon Aug 23 16:29:29 2010
New Revision: 111847
URL: http://llvm.org/viewvc/llvm-project?rev=111847&view=rev
Log:
Remove the MFI storage of the local allocation block size. It's not needed.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h
llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
Modified: llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h?rev=111847&r1=111846&r2=111847&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h Mon Aug 23 16:29:29 2010
@@ -207,11 +207,6 @@
/// LocalFrameSize - Size of the pre-allocated local frame block.
int64_t LocalFrameSize;
- /// LocalFrameBaseOffset - The base offset from the stack pointer at
- /// function entry of the local frame blob. Set by PEI for use by
- /// target in eliminateFrameIndex().
- int64_t LocalFrameBaseOffset;
-
/// Required alignment of the local object blob, which is the strictest
/// alignment of any object in it.
unsigned LocalFrameMaxAlign;
@@ -233,7 +228,6 @@
MaxCallFrameSize = 0;
CSIValid = false;
LocalFrameSize = 0;
- LocalFrameBaseOffset = 0;
LocalFrameMaxAlign = 0;
UseLocalStackAllocationBlock = false;
}
@@ -299,14 +293,6 @@
/// the local object block.
int64_t getLocalFrameObjectCount() { return LocalFrameObjects.size(); }
- /// setLocalFrameBaseOffset - Set the base SP offset of the local frame
- /// blob.
- void setLocalFrameBaseOffset(int64_t o) { LocalFrameBaseOffset = o; }
-
- /// getLocalFrameBaseOffset - Get the base SP offset of the local frame
- /// blob.
- int64_t getLocalFrameBaseOffset() const { return LocalFrameBaseOffset; }
-
/// setLocalFrameSize - Set the size of the local object blob.
void setLocalFrameSize(int64_t sz) { LocalFrameSize = sz; }
Modified: llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp?rev=111847&r1=111846&r2=111847&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp (original)
+++ llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp Mon Aug 23 16:29:29 2010
@@ -566,10 +566,6 @@
// Adjust to alignment boundary.
Offset = (Offset + Align - 1) / Align * Align;
- // Store the offset of the start of the local allocation block. This
- // will be used later when resolving frame base virtual register pseudos.
- MFI->setLocalFrameBaseOffset(Offset);
-
DEBUG(dbgs() << "Local frame base offset: " << Offset << "\n");
// Resolve offsets for objects in the local block.
More information about the llvm-commits
mailing list