[llvm] r304403 - Remove ISD::SETCC match from combineX86ADD. It's done improperly and doesn't work.
Amaury Sechet via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 1 04:13:10 PDT 2017
Author: deadalnix
Date: Thu Jun 1 06:13:10 2017
New Revision: 304403
URL: http://llvm.org/viewvc/llvm-project?rev=304403&view=rev
Log:
Remove ISD::SETCC match from combineX86ADD. It's done improperly and doesn't work.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=304403&r1=304402&r2=304403&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Jun 1 06:13:10 2017
@@ -34486,8 +34486,7 @@ static SDValue combineX86ADD(SDNode *N,
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));
More information about the llvm-commits
mailing list