summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2017-02-07 08:57:50 +0000
committerDaniel Jasper <djasper@google.com>2017-02-07 08:57:50 +0000
commit84b3cc394d117ee5fed10fe1c0b9e76ad89ff2c9 (patch)
treee8ead22eb40716cf7e7d1bfa2a917714b3295073 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent9191c3324a7138fcdf2d7f48dba4dc04b3c99aa7 (diff)
downloadbcm5719-llvm-84b3cc394d117ee5fed10fe1c0b9e76ad89ff2c9.tar.gz
bcm5719-llvm-84b3cc394d117ee5fed10fe1c0b9e76ad89ff2c9.zip
Revert "[DAGCombiner] (add X, (adde Y, 0, Carry)) -> (adde X, Y, Carry)"
This reverts commit r294186. On an internal test, this triggers an out-of-memory error on PPC, presumably because there is another dagcombine that does the exact opposite triggering and endless loop consuming more and more memory. Chandler has started at creating a reduced test case and we'll attach it as soon as possible. llvm-svn: 294288
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 97ec5d6b2d7..91f462d2d41 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1834,12 +1834,6 @@ SDValue DAGCombiner::visitADDLike(SDValue N0, SDValue N1, SDNode *LocReference)
}
}
- // (add X, (adde Y, 0, Carry)) -> (adde X, Y, Carry)
- if (N1.getOpcode() == ISD::ADDE && N1->hasOneUse() &&
- isNullConstant(N1.getOperand(1)))
- return DAG.getNode(ISD::ADDE, DL, DAG.getVTList(VT, MVT::Glue),
- N0, N1->getOperand(0), N1->getOperand(2));
-
return SDValue();
}
OpenPOWER on IntegriCloud