[llvm] d35f2c4 - Remove constant local variable (#83850)

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 5 11:23:13 PST 2024


Author: Martin Wehking
Date: 2024-03-06T00:53:09+05:30
New Revision: d35f2c439a12b8e97e1bad02b6cc4349c9914345

URL: https://github.com/llvm/llvm-project/commit/d35f2c439a12b8e97e1bad02b6cc4349c9914345
DIFF: https://github.com/llvm/llvm-project/commit/d35f2c439a12b8e97e1bad02b6cc4349c9914345.diff

LOG: Remove constant local variable (#83850)

Remove isThisReturn, which always has the value false.
Replace its uses with false directly.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index 30a65bb332652e..f30dc06ed408db 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,


        


More information about the llvm-commits mailing list