forked from OSchip/llvm-project
AArch64ISelLowering: Remove unused variables/arguments; NFC
llvm-svn: 265098
This commit is contained in:
parent
35c6181982
commit
cc7fba40fe
|
@ -2802,7 +2802,6 @@ SDValue AArch64TargetLowering::LowerCallResult(
|
|||
|
||||
bool AArch64TargetLowering::isEligibleForTailCallOptimization(
|
||||
SDValue Callee, CallingConv::ID CalleeCC, bool isVarArg,
|
||||
bool isCalleeStructRet, bool isCallerStructRet,
|
||||
const SmallVectorImpl<ISD::OutputArg> &Outs,
|
||||
const SmallVectorImpl<SDValue> &OutVals,
|
||||
const SmallVectorImpl<ISD::InputArg> &Ins, SelectionDAG &DAG) const {
|
||||
|
@ -2960,7 +2959,6 @@ AArch64TargetLowering::LowerCall(CallLoweringInfo &CLI,
|
|||
bool IsVarArg = CLI.IsVarArg;
|
||||
|
||||
MachineFunction &MF = DAG.getMachineFunction();
|
||||
bool IsStructRet = (Outs.empty()) ? false : Outs[0].Flags.isSRet();
|
||||
bool IsThisReturn = false;
|
||||
|
||||
AArch64FunctionInfo *FuncInfo = MF.getInfo<AArch64FunctionInfo>();
|
||||
|
@ -2970,8 +2968,7 @@ AArch64TargetLowering::LowerCall(CallLoweringInfo &CLI,
|
|||
if (IsTailCall) {
|
||||
// Check if it's really possible to do a tail call.
|
||||
IsTailCall = isEligibleForTailCallOptimization(
|
||||
Callee, CallConv, IsVarArg, IsStructRet,
|
||||
MF.getFunction()->hasStructRetAttr(), Outs, OutVals, Ins, DAG);
|
||||
Callee, CallConv, IsVarArg, Outs, OutVals, Ins, DAG);
|
||||
if (!IsTailCall && CLI.CS && CLI.CS->isMustTailCall())
|
||||
report_fatal_error("failed to perform tail call elimination on a call "
|
||||
"site marked musttail");
|
||||
|
|
|
@ -426,7 +426,6 @@ private:
|
|||
|
||||
bool isEligibleForTailCallOptimization(
|
||||
SDValue Callee, CallingConv::ID CalleeCC, bool isVarArg,
|
||||
bool isCalleeStructRet, bool isCallerStructRet,
|
||||
const SmallVectorImpl<ISD::OutputArg> &Outs,
|
||||
const SmallVectorImpl<SDValue> &OutVals,
|
||||
const SmallVectorImpl<ISD::InputArg> &Ins, SelectionDAG &DAG) const;
|
||||
|
|
Loading…
Reference in New Issue