diff options
| author | Nate Begeman <natebegeman@mac.com> | 2006-02-05 08:23:00 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2006-02-05 08:23:00 +0000 |
| commit | 8c9cd461dfaa370d25d2ab3487ccd48a99e00e1e (patch) | |
| tree | badb12508e975d1a270c6b1dff955b3243e55544 /llvm/lib | |
| parent | 3dc8b89493c4deba5f17a96772031ab370ee66b9 (diff) | |
| download | bcm5719-llvm-8c9cd461dfaa370d25d2ab3487ccd48a99e00e1e.tar.gz bcm5719-llvm-8c9cd461dfaa370d25d2ab3487ccd48a99e00e1e.zip | |
Back out previous commit, it isn't safe.
llvm-svn: 26006
Diffstat (limited to 'llvm/lib')
| -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 e853db3310a..853dc1420d7 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -1288,12 +1288,6 @@ SDOperand DAGCombiner::visitSHL(SDNode *N) { // fold (shl 0, x) -> 0 if (N0C && N0C->isNullValue()) return N0; - // fold (shl c1, (add x, c2)) -> (shl c1 << c2, x) - if (N0C && N1.getOpcode() == ISD::ADD && - N1.getOperand(1).getOpcode() == ISD::Constant) { - SDOperand LHS = DAG.getNode(ISD::SHL, VT, N0, N1.getOperand(1)); - return DAG.getNode(ISD::SHL, VT, LHS, N1.getOperand(0)); - } // fold (shl x, c >= size(x)) -> undef if (N1C && N1C->getValue() >= OpSizeInBits) return DAG.getNode(ISD::UNDEF, VT); |

