[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Nate Begeman natebegeman at mac.com
Sun Feb 5 00:23:12 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

DAGCombiner.cpp updated: 1.98 -> 1.99
---
Log message:

Back out previous commit, it isn't safe.


---
Diffs of the changes:  (+0 -6)

 DAGCombiner.cpp |    6 ------
 1 files changed, 6 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.98 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.99
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.98	Sun Feb  5 02:07:24 2006
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp	Sun Feb  5 02:23:00 2006
@@ -1288,12 +1288,6 @@
   // 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);






More information about the llvm-commits mailing list