summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-11-07 19:04:26 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-11-07 19:04:26 +0000
commit7085221a593ac5cb2478a4f81e0f7212616a9afb (patch)
tree2bbac444c8ed1fd588738fcd182ff7286f297ed5 /lib
parent162d91c1e0bf5c14e2838dd623b3e054e7537de6 (diff)
downloadllvm-7085221a593ac5cb2478a4f81e0f7212616a9afb.tar.gz
llvm-7085221a593ac5cb2478a4f81e0f7212616a9afb.tar.bz2
llvm-7085221a593ac5cb2478a4f81e0f7212616a9afb.tar.xz
Delete MipsFunctionInfo::NextStackOffset. No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/Mips/MipsISelLowering.cpp5
-rw-r--r--lib/Target/Mips/MipsMachineFunction.h11
2 files changed, 6 insertions, 10 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp
index 9f4d15cfe0..239140c4cd 100644
--- a/lib/Target/Mips/MipsISelLowering.cpp
+++ b/lib/Target/Mips/MipsISelLowering.cpp
@@ -2674,9 +2674,9 @@ IsEligibleForTailCallOptimization(const MipsCC &MipsCCInfo,
if (MipsCCInfo.hasByValArg() || FI.hasByvalArg())
return false;
- // Return true if the callee's next stack offset is no larger than the
+ // Return true if the callee's argument area is no larger than the
// caller's.
- return NextStackOffset <= FI.nextStackOffset();
+ return NextStackOffset <= FI.getIncomingArgSize();
}
SDValue
@@ -3027,7 +3027,6 @@ MipsTargetLowering::LowerFormalArguments(SDValue Chain,
MipsCCInfo.analyzeFormalArguments(Ins);
MipsFI->setFormalArgInfo(CCInfo.getNextStackOffset(),
MipsCCInfo.hasByValArg());
- MipsFI->setIncomingArgSize(CCInfo.getNextStackOffset());
Function::const_arg_iterator FuncArg =
DAG.getMachineFunction().getFunction()->arg_begin();
diff --git a/lib/Target/Mips/MipsMachineFunction.h b/lib/Target/Mips/MipsMachineFunction.h
index d2eba58114..bb45f92f18 100644
--- a/lib/Target/Mips/MipsMachineFunction.h
+++ b/lib/Target/Mips/MipsMachineFunction.h
@@ -47,11 +47,10 @@ class MipsFunctionInfo : public MachineFunctionInfo {
/// VarArgsFrameIndex - FrameIndex for start of varargs area.
int VarArgsFrameIndex;
- // Formal argument information obtained during call to LowerFormalArguments.
- unsigned NextStackOffset;
+ /// True if function has a byval argument.
bool HasByvalArg;
- // Size of incoming argument area.
+ /// Size of incoming argument area.
unsigned IncomingArgSize;
public:
@@ -72,15 +71,13 @@ public:
int getVarArgsFrameIndex() const { return VarArgsFrameIndex; }
void setVarArgsFrameIndex(int Index) { VarArgsFrameIndex = Index; }
- unsigned nextStackOffset() const { return NextStackOffset; }
bool hasByvalArg() const { return HasByvalArg; }
- void setFormalArgInfo(unsigned Offset, bool HasByval) {
- NextStackOffset = Offset;
+ void setFormalArgInfo(unsigned Size, bool HasByval) {
+ IncomingArgSize = Size;
HasByvalArg = HasByval;
}
unsigned getIncomingArgSize() const { return IncomingArgSize; }
- void setIncomingArgSize(unsigned S) { IncomingArgSize = S; }
};
} // end of namespace llvm