[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Jan 10 20:25:28 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.24 -> 1.25
---
Log message:
shift X, 0 -> X
---
Diffs of the changes: (+6 -0)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.24 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.25
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.24 Mon Jan 10 17:25:25 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Mon Jan 10 22:25:13 2005
@@ -612,6 +612,12 @@
}
break;
+ case ISD::SHL:
+ case ISD::SRL:
+ case ISD::SRA:
+ if (C2 == 0) return N1;
+ break;
+
case ISD::AND:
if (!C2) return N2; // X and 0 -> 0
if (N2C->isAllOnesValue())
More information about the llvm-commits
mailing list