aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wehking <martin.wehking@codeplay.com>2024-03-05 19:23:09 +0000
committerGitHub <noreply@github.com>2024-03-06 00:53:09 +0530
commitd35f2c439a12b8e97e1bad02b6cc4349c9914345 (patch)
treefa6c410e24f01956d3c5149d391a287998607b62
parent9a20612d960bbcbf6bd59d2d94400574a3cccde0 (diff)
downloadllvm-d35f2c439a12b8e97e1bad02b6cc4349c9914345.zip
llvm-d35f2c439a12b8e97e1bad02b6cc4349c9914345.tar.gz
llvm-d35f2c439a12b8e97e1bad02b6cc4349c9914345.tar.bz2
Remove constant local variable (#83850)
Remove isThisReturn, which always has the value false. Replace its uses with false directly.
-rw-r--r--llvm/lib/Target/AMDGPU/SIISelLowering.cpp4
1 files changed, 1 insertions, 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,