diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2015-05-13 23:41:47 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2015-05-13 23:41:47 +0000 |
commit | 37a175007bacf8d6db1f01d6a720613f4e41ce93 (patch) | |
tree | 1032616a3703ca6e1b413a2b32ee5987727fe2a8 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | da04cb26435c91ba504090bf03905fca3b67f7bb (diff) | |
download | bcm5719-llvm-37a175007bacf8d6db1f01d6a720613f4e41ce93.tar.gz bcm5719-llvm-37a175007bacf8d6db1f01d6a720613f4e41ce93.zip |
Revert r237046. See the testcase on the thread where r237046 was committed.
llvm-svn: 237317
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 2ebb14fb522..3728168e693 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -1452,9 +1452,12 @@ SDValue DAGCombiner::combine(SDNode *N) { if (isa<ConstantSDNode>(N0) || !isa<ConstantSDNode>(N1)) { SDValue Ops[] = {N1, N0}; SDNode *CSENode; - if (const auto *BinNode = dyn_cast<BinaryWithFlagsSDNode>(N)) { + if (const BinaryWithFlagsSDNode *BinNode = + dyn_cast<BinaryWithFlagsSDNode>(N)) { CSENode = DAG.getNodeIfExists(N->getOpcode(), N->getVTList(), Ops, - &BinNode->Flags); + BinNode->Flags.hasNoUnsignedWrap(), + BinNode->Flags.hasNoSignedWrap(), + BinNode->Flags.hasExact()); } else { CSENode = DAG.getNodeIfExists(N->getOpcode(), N->getVTList(), Ops); } |