diff options
| author | Tim Northover <tnorthover@apple.com> | 2015-01-21 15:48:52 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2015-01-21 15:48:52 +0000 |
| commit | cf3d80fedbf67976222838756a5c6a888e7a3dc5 (patch) | |
| tree | ab70689fed567e6a428f3c11f7ba6a4d2c8d5e3a /llvm/lib/CodeGen/SelectionDAG | |
| parent | b9184f2b1a526c2dafdc1b360c51bb276b757d8e (diff) | |
| download | bcm5719-llvm-cf3d80fedbf67976222838756a5c6a888e7a3dc5.tar.gz bcm5719-llvm-cf3d80fedbf67976222838756a5c6a888e7a3dc5.zip | |
Revert "DAGCombine: fold (or (and X, M), (and X, N)) -> (and X, (or M, N))"
It hadn't gone through review yet, but was still on my local copy.
This reverts commit r226663
llvm-svn: 226665
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 849508891d3..3bde9918793 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -3527,17 +3527,6 @@ SDValue DAGCombiner::visitOR(SDNode *N) { } } - // (or (and X, M), (and X, N)) -> (and X, (or M, N)) - if (N0.getOpcode() == ISD::AND && - N1.getOpcode() == ISD::AND && - N0.getOperand(0) == N1.getOperand(0) && - // Don't increase # computations. - (N0.getNode()->hasOneUse() || N1.getNode()->hasOneUse())) { - SDValue X = DAG.getNode(ISD::OR, SDLoc(N0), VT, - N0.getOperand(1), N1.getOperand(1)); - return DAG.getNode(ISD::AND, SDLoc(N), VT, N0.getOperand(0), X); - } - // See if this is some rotate idiom. if (SDNode *Rot = MatchRotate(N0, N1, SDLoc(N))) return SDValue(Rot, 0); |

