OSDN Git Service

Remove ISD::SETCC match from combineX86ADD. It's done improperly and doesn't work.
authorAmaury Sechet <deadalnix@gmail.com>
Thu, 1 Jun 2017 11:13:10 +0000 (11:13 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Thu, 1 Jun 2017 11:13:10 +0000 (11:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304403 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 5689b14..9d77d75 100644 (file)
@@ -34486,8 +34486,7 @@ static SDValue combineX86ADD(SDNode *N, SelectionDAG &DAG,
             isOneConstant(Carry.getOperand(1))))
       Carry = Carry.getOperand(0);
 
-    if (Carry.getOpcode() == ISD::SETCC ||
-        Carry.getOpcode() == X86ISD::SETCC ||
+    if (Carry.getOpcode() == X86ISD::SETCC ||
         Carry.getOpcode() == X86ISD::SETCC_CARRY) {
       if (Carry.getConstantOperandVal(0) == X86::COND_B)
         return DCI.CombineTo(N, SDValue(N, 0), Carry.getOperand(1));