diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-08-19 22:39:31 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-08-19 22:39:31 +0000 |
| commit | 68ed46ce9ac7a734e9221b6b887a1391834c40db (patch) | |
| tree | b44443aa0e59b5cc4bcfb06a02378b96217a6a9a /llvm/lib/CodeGen | |
| parent | eeca36fe9ad767380b2eab76a6fe5ba410a47393 (diff) | |
| download | bcm5719-llvm-68ed46ce9ac7a734e9221b6b887a1391834c40db.tar.gz bcm5719-llvm-68ed46ce9ac7a734e9221b6b887a1391834c40db.zip | |
Roll back the rest of r126557. It's a hack that will break in some obscure cases.
llvm-svn: 138130
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 51aca66eef8..1d17473b466 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -1526,12 +1526,6 @@ SDValue DAGCombiner::visitADDE(SDNode *N) { ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0); ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); - // If both operands are null we know that carry out will always be false. - if (N0C && N0C->isNullValue() && N0 == N1) - DAG.ReplaceAllUsesOfValueWith(SDValue(N, 1), DAG.getNode(ISD::CARRY_FALSE, - N->getDebugLoc(), - MVT::Glue)); - // canonicalize constant to RHS if (N0C && !N1C) return DAG.getNode(ISD::ADDE, N->getDebugLoc(), N->getVTList(), |

