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

Chris Lattner lattner at cs.uiuc.edu
Fri Jan 21 10:01:38 PST 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAG.cpp updated: 1.44 -> 1.45
---
Log message:

Unary token factor nodes are unneeded.


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

Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.44 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.45
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.44	Thu Jan 20 12:50:55 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp	Fri Jan 21 12:01:22 2005
@@ -511,6 +511,8 @@
 
   unsigned OpOpcode = Operand.Val->getOpcode();
   switch (Opcode) {
+  case ISD::TokenFactor:
+    return Operand;         // Factor of one node?  No factor.
   case ISD::SIGN_EXTEND:
     if (Operand.getValueType() == VT) return Operand;   // noop extension
     if (OpOpcode == ISD::SIGN_EXTEND || OpOpcode == ISD::ZERO_EXTEND)






More information about the llvm-commits mailing list