Skip to content

Commit e687a9f

Browse files
committed
[TargetLowering] Remove unncessary null check. NFC
1 parent 161e250 commit e687a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4917,7 +4917,7 @@ SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
49174917
if ((Cond == ISD::SETEQ || Cond == ISD::SETNE) &&
49184918
N0.getOpcode() == ISD::SRA && isa<ConstantSDNode>(N0.getOperand(1)) &&
49194919
N0.getConstantOperandAPInt(1) == OpVT.getScalarSizeInBits() - 1 &&
4920-
N1C && N1C->isAllOnes()) {
4920+
N1C->isAllOnes()) {
49214921
return DAG.getSetCC(dl, VT, N0.getOperand(0),
49224922
DAG.getConstant(0, dl, OpVT),
49234923
Cond == ISD::SETEQ ? ISD::SETLT : ISD::SETGE);

0 commit comments

Comments
 (0)