]> granicus.if.org Git - llvm/commitdiff
Remove redundant extractBooleanFlip argument. NFC
authorAmaury Sechet <deadalnix@gmail.com>
Mon, 11 Mar 2019 00:37:01 +0000 (00:37 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Mon, 11 Mar 2019 00:37:01 +0000 (00:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355794 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index 6d59cdf7aec7a80815a5a41bcd2f845ca64f5106..2af4289df52640bfa7619b533a7018975ffdb82e 100644 (file)
@@ -2399,8 +2399,10 @@ SDValue DAGCombiner::visitADDC(SDNode *N) {
   return SDValue();
 }
 
-static SDValue flipBoolean(SDValue V, const SDLoc &DL, EVT VT,
+static SDValue flipBoolean(SDValue V, const SDLoc &DL,
                            SelectionDAG &DAG, const TargetLowering &TLI) {
+  EVT VT = V.getValueType();
+
   SDValue Cst;
   switch (TLI.getBooleanContents(VT)) {
   case TargetLowering::ZeroOrOneBooleanContent:
@@ -2477,7 +2479,7 @@ SDValue DAGCombiner::visitADDO(SDNode *N) {
       SDValue Sub = DAG.getNode(ISD::USUBO, DL, N->getVTList(),
                                 DAG.getConstant(0, DL, VT), N0.getOperand(0));
       return CombineTo(N, Sub,
-                       flipBoolean(Sub.getValue(1), DL, CarryVT, DAG, TLI));
+                       flipBoolean(Sub.getValue(1), DL, DAG, TLI));
     }
 
     if (SDValue Combined = visitUADDOLike(N0, N1, N))
@@ -2571,7 +2573,7 @@ SDValue DAGCombiner::visitADDCARRY(SDNode *N) {
                                 DAG.getConstant(0, DL, N0.getValueType()),
                                 N0.getOperand(0), B);
       return CombineTo(N, Sub,
-                       flipBoolean(Sub.getValue(1), DL, CarryVT, DAG, TLI));
+                       flipBoolean(Sub.getValue(1), DL, DAG, TLI));
     }
   }