From d35f2c439a12b8e97e1bad02b6cc4349c9914345 Mon Sep 17 00:00:00 2001 From: Martin Wehking Date: Tue, 5 Mar 2024 19:23:09 +0000 Subject: Remove constant local variable (#83850) Remove isThisReturn, which always has the value false. Replace its uses with false directly. --- llvm/lib/Target/AMDGPU/SIISelLowering.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp index 30a65bb..f30dc06 100644 --- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp @@ -3598,7 +3598,6 @@ SDValue SITargetLowering::LowerCall(CallLoweringInfo &CLI, bool &IsTailCall = CLI.IsTailCall; bool IsVarArg = CLI.IsVarArg; bool IsSibCall = false; - bool IsThisReturn = false; MachineFunction &MF = DAG.getMachineFunction(); if (Callee.isUndef() || isNullConstant(Callee)) { @@ -3888,8 +3887,7 @@ SDValue SITargetLowering::LowerCall(CallLoweringInfo &CLI, // Handle result values, copying them out of physregs into vregs that we // return. return LowerCallResult(Chain, InGlue, CallConv, IsVarArg, Ins, DL, DAG, - InVals, IsThisReturn, - IsThisReturn ? OutVals[0] : SDValue()); + InVals, /*IsThisReturn=*/false, SDValue()); } // This is identical to the default implementation in ExpandDYNAMIC_STACKALLOC, -- cgit v1.1