[llvm] Remove constant local variable (PR #83850)
Martin Wehking via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 4 06:27:00 PST 2024
https://github.com/MartinWehking created https://github.com/llvm/llvm-project/pull/83850
Remove isThisReturn which has always the value false.
Replace its uses with false directly.
>From cd4895c7c4630601718eebc9aed25841e0a590c8 Mon Sep 17 00:00:00 2001
From: Martin Wehking <martin.wehking at codeplay.com>
Date: Mon, 4 Mar 2024 14:23:55 +0000
Subject: [PATCH] Remove constant local variable
Remove isThisReturn which has always 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 0df0b5cdf0f392..9739dee6ba591b 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -3599,7 +3599,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)) {
@@ -3892,8 +3891,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, false, SDValue());
}
// This is identical to the default implementation in ExpandDYNAMIC_STACKALLOC,
More information about the llvm-commits
mailing list