[llvm] 464729c - [X86] Remove unnecessary check for null SDValue. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 16 20:26:21 PST 2020
Author: Craig Topper
Date: 2020-02-16T20:25:24-08:00
New Revision: 464729cf7c5cf36b33e414704d9d3eff578630b2
URL: https://github.com/llvm/llvm-project/commit/464729cf7c5cf36b33e414704d9d3eff578630b2
DIFF: https://github.com/llvm/llvm-project/commit/464729cf7c5cf36b33e414704d9d3eff578630b2.diff
LOG: [X86] Remove unnecessary check for null SDValue. NFC
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index e6e2a81965bc..3b30df447340 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -22226,9 +22226,6 @@ SDValue X86TargetLowering::LowerSETCC(SDValue Op, SelectionDAG &DAG) const {
if (Op0.getSimpleValueType().isInteger()) {
SDValue X86CC;
SDValue EFLAGS = emitFlagsForSetcc(Op0, Op1, CC, dl, DAG, X86CC);
- if (!EFLAGS)
- return SDValue();
-
SDValue Res = DAG.getNode(X86ISD::SETCC, dl, MVT::i8, X86CC, EFLAGS);
return IsStrict ? DAG.getMergeValues({Res, Chain}, dl) : Res;
}
More information about the llvm-commits
mailing list