summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2017-06-01 11:13:10 +0000
committerAmaury Sechet <deadalnix@gmail.com>2017-06-01 11:13:10 +0000
commit6506a90a703ba1c034602b07cce81f633aebf9e4 (patch)
treecd85ab9fb8b466020938bd0b07e8574df7a7d81b /llvm/lib/Target
parent9c5d1e966b45f0045be361d47fab61acd58048a9 (diff)
downloadbcm5719-llvm-6506a90a703ba1c034602b07cce81f633aebf9e4.tar.gz
bcm5719-llvm-6506a90a703ba1c034602b07cce81f633aebf9e4.zip
Remove ISD::SETCC match from combineX86ADD. It's done improperly and doesn't work.
llvm-svn: 304403
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 5689b14e4b0..9d77d75ae00 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/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));
OpenPOWER on IntegriCloud