aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2006-02-05 08:23:00 +0000
committerNate Begeman <natebegeman@mac.com>2006-02-05 08:23:00 +0000
commitbe71442292e89b2e0cca61a8ecca9997df319d93 (patch)
treec3d1390b7ac70c1f5b33174d5606741de6777d60 /lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parentbab9239d0572d35a08423782eb964e532c3c6524 (diff)
Back out previous commit, it isn't safe.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/DAGCombiner.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index e853db3310..853dc1420d 100644
--- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/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);