[llvm] r250653 - Use SDValue bool check. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 18 05:33:55 PDT 2015
Author: rksimon
Date: Sun Oct 18 07:33:54 2015
New Revision: 250653
URL: http://llvm.org/viewvc/llvm-project?rev=250653&view=rev
Log:
Use SDValue bool check. NFCI.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=250653&r1=250652&r2=250653&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Sun Oct 18 07:33:54 2015
@@ -3907,8 +3907,8 @@ SDValue SelectionDAG::getNode(unsigned O
break;
case ISD::SETCC: {
// Use FoldSetCC to simplify SETCC's.
- SDValue Simp = FoldSetCC(VT, N1, N2, cast<CondCodeSDNode>(N3)->get(), DL);
- if (Simp.getNode()) return Simp;
+ if (SDValue V = FoldSetCC(VT, N1, N2, cast<CondCodeSDNode>(N3)->get(), DL))
+ return V;
break;
}
case ISD::SELECT:
More information about the llvm-commits
mailing list