Commit 0d9faeac by Jan Voung

Remove the FrameSizeLocals field which appears to be unused (write-only).

Might have gotten replaced by some other field, but don't quite remember. Spotted while looking for ways to share the addProlog() code between targets. BUG=none R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1158713005
parent 9a05aea8
...@@ -403,7 +403,7 @@ TargetX8632::TargetX8632(Cfg *Func) ...@@ -403,7 +403,7 @@ TargetX8632::TargetX8632(Cfg *Func)
InstructionSet(static_cast<X86InstructionSet>( InstructionSet(static_cast<X86InstructionSet>(
Func->getContext()->getFlags().getTargetInstructionSet() - Func->getContext()->getFlags().getTargetInstructionSet() -
TargetInstructionSet::X86InstructionSet_Begin)), TargetInstructionSet::X86InstructionSet_Begin)),
IsEbpBasedFrame(false), NeedsStackAlignment(false), FrameSizeLocals(0), IsEbpBasedFrame(false), NeedsStackAlignment(false),
SpillAreaSizeBytes(0) { SpillAreaSizeBytes(0) {
static_assert((X86InstructionSet::End - X86InstructionSet::Begin) == static_assert((X86InstructionSet::End - X86InstructionSet::Begin) ==
(TargetInstructionSet::X86InstructionSet_End - (TargetInstructionSet::X86InstructionSet_End -
...@@ -1023,7 +1023,6 @@ void TargetX8632::addProlog(CfgNode *Node) { ...@@ -1023,7 +1023,6 @@ void TargetX8632::addProlog(CfgNode *Node) {
else else
Var->setStackOffset(SpillAreaSizeBytes - NextStackOffset); Var->setStackOffset(SpillAreaSizeBytes - NextStackOffset);
} }
this->FrameSizeLocals = NextStackOffset - SpillAreaPaddingBytes;
this->HasComputedFrame = true; this->HasComputedFrame = true;
// Assign stack offsets to variables that have been linked to spilled // Assign stack offsets to variables that have been linked to spilled
......
...@@ -567,7 +567,6 @@ protected: ...@@ -567,7 +567,6 @@ protected:
const X86InstructionSet InstructionSet; const X86InstructionSet InstructionSet;
bool IsEbpBasedFrame; bool IsEbpBasedFrame;
bool NeedsStackAlignment; bool NeedsStackAlignment;
size_t FrameSizeLocals;
size_t SpillAreaSizeBytes; size_t SpillAreaSizeBytes;
llvm::SmallBitVector TypeToRegisterSet[IceType_NUM]; llvm::SmallBitVector TypeToRegisterSet[IceType_NUM];
llvm::SmallBitVector ScratchRegs; llvm::SmallBitVector ScratchRegs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment