OSDN Git Service

Use getAllOnesConstants instead of -1 in DAGCombiner. NFC
authorAmaury Sechet <deadalnix@gmail.com>
Wed, 3 Jul 2019 16:34:36 +0000 (16:34 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Wed, 3 Jul 2019 16:34:36 +0000 (16:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365054 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index 2d7771e..b0e0175 100644 (file)
@@ -2699,7 +2699,7 @@ static SDValue flipBoolean(SDValue V, const SDLoc &DL,
     Cst = DAG.getConstant(1, DL, VT);
     break;
   case TargetLowering::ZeroOrNegativeOneBooleanContent:
-    Cst = DAG.getConstant(-1, DL, VT);
+    Cst = DAG.getAllOnesConstant(DL, VT);
     break;
   }