projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da95a84
)
Revert the previous check-in. Leave shl x, 1 along for target to deal with.
author
Evan Cheng
<evan.cheng@apple.com>
Fri, 6 Jan 2006 01:56:02 +0000
(
01:56
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Fri, 6 Jan 2006 01:56:02 +0000
(
01:56
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25121
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 9770ae232bfe973497b0128e9295cfd0e413a8ea..30a4c9f637ccca82ad03f355c08de53b1c2d3f8a 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
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);