summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-01-06 01:56:02 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-01-06 01:56:02 +0000
commit85c973cda9109056aaafb65ebee89d7062fa45fd (patch)
treed3b4f38fa38544d967f8a5d8f80e06bcc2539343 /llvm/lib/CodeGen
parentb03f9b32d282c665c571d3fca88fad5eaf5393be (diff)
downloadbcm5719-llvm-85c973cda9109056aaafb65ebee89d7062fa45fd.tar.gz
bcm5719-llvm-85c973cda9109056aaafb65ebee89d7062fa45fd.zip
Revert the previous check-in. Leave shl x, 1 along for target to deal with.
llvm-svn: 25121
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 9770ae232bf..30a4c9f637c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1282,9 +1282,6 @@ SDOperand DAGCombiner::visitSHL(SDNode *N) {
// fold (shl x, 0) -> x
if (N1C && N1C->isNullValue())
return N0;
- // fold (shl x, 1) -> (add x, x)
- if (N1C && N1C->getValue() == 1)
- return DAG.getNode(ISD::ADD, VT, N0, N0);
// if (shl x, c) is known to be zero, return 0
if (N1C && MaskedValueIsZero(SDOperand(N, 0), ~0ULL >> (64-OpSizeInBits),TLI))
return DAG.getConstant(0, VT);
OpenPOWER on IntegriCloud