[llvm] e687a9f - [TargetLowering] Remove unncessary null check. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 12:27:07 PDT 2024
Author: Craig Topper
Date: 2024-08-14T12:26:41-07:00
New Revision: e687a9f2dd389a54a10456e57693f93df0c64c02
URL: https://github.com/llvm/llvm-project/commit/e687a9f2dd389a54a10456e57693f93df0c64c02
DIFF: https://github.com/llvm/llvm-project/commit/e687a9f2dd389a54a10456e57693f93df0c64c02.diff
LOG: [TargetLowering] Remove unncessary null check. NFC
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index b5bca5937477b..4cf1e655b0099 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -4917,7 +4917,7 @@ SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
if ((Cond == ISD::SETEQ || Cond == ISD::SETNE) &&
N0.getOpcode() == ISD::SRA && isa<ConstantSDNode>(N0.getOperand(1)) &&
N0.getConstantOperandAPInt(1) == OpVT.getScalarSizeInBits() - 1 &&
- N1C && N1C->isAllOnes()) {
+ N1C->isAllOnes()) {
return DAG.getSetCC(dl, VT, N0.getOperand(0),
DAG.getConstant(0, dl, OpVT),
Cond == ISD::SETEQ ? ISD::SETLT : ISD::SETGE);
More information about the llvm-commits
mailing list