use SDValue bool operator; NFCI
authorSanjay Patel <spatel@rotateright.com>
Sun, 16 Aug 2015 17:54:28 +0000 (17:54 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 16 Aug 2015 17:54:28 +0000 (17:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245181 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index f2e4e6ba2407cd01317d0382aeac5d8bb38d80ec..585cff0de0b5368837fa4ff826a68f7049bb2969 100644 (file)
@@ -4972,10 +4972,9 @@ SDValue DAGCombiner::visitSELECT(SDNode *N) {
         DAG.isKnownNeverNaN(N1) && DAG.isKnownNeverNaN(N2)) {
       ISD::CondCode CC = cast<CondCodeSDNode>(N0.getOperand(2))->get();
 
-      SDValue FMinMax =
-          combineMinNumMaxNum(SDLoc(N), VT, N0.getOperand(0), N0.getOperand(1),
-                              N1, N2, CC, TLI, DAG);
-      if (FMinMax)
+      if (SDValue FMinMax = combineMinNumMaxNum(SDLoc(N), VT, N0.getOperand(0),
+                                                N0.getOperand(1), N1, N2, CC,
+                                                TLI, DAG))
         return FMinMax;
     }