From 5e2475598e0dd73c0ed3c8e065cf0669277c3cab Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Mon, 23 Aug 2010 21:29:29 +0000 Subject: [PATCH] Remove the MFI storage of the local allocation block size. It's not needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111847 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineFrameInfo.h | 14 -------------- lib/CodeGen/PrologEpilogInserter.cpp | 4 ---- 2 files changed, 18 deletions(-) diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h index 7d75c2d5c27..44b3aed8453 100644 --- a/include/llvm/CodeGen/MachineFrameInfo.h +++ b/include/llvm/CodeGen/MachineFrameInfo.h @@ -207,11 +207,6 @@ class MachineFrameInfo { /// 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 @@ public: MaxCallFrameSize = 0; CSIValid = false; LocalFrameSize = 0; - LocalFrameBaseOffset = 0; LocalFrameMaxAlign = 0; UseLocalStackAllocationBlock = false; } @@ -299,14 +293,6 @@ public: /// 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; } diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index b600790d851..e360f2c4610 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -566,10 +566,6 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) { // 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. -- 2.34.1