From b8a22cca7288306e6621530df0d13ebe80f4fe7a Mon Sep 17 00:00:00 2001 From: Amaury Sechet Date: Thu, 1 Jun 2017 11:13:10 +0000 Subject: [PATCH] Remove ISD::SETCC match from combineX86ADD. It's done improperly and doesn't work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304403 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ISelLowering.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 5689b14e4b0..9d77d75ae00 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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)); -- 2.11.0