[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 13 10:37:42 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
DAGCombiner.cpp updated: 1.125 -> 1.126
---
Log message:
make sure dead token factor nodes are removed by the dag combiner.
---
Diffs of the changes: (+1 -0)
DAGCombiner.cpp | 1 +
1 files changed, 1 insertion(+)
Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.125 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.126
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.125 Mon Mar 13 00:51:27 2006
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Mon Mar 13 12:37:30 2006
@@ -665,6 +665,7 @@
for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i) {
SDOperand Op = N->getOperand(i);
if (Op.getOpcode() == ISD::TokenFactor && Op.hasOneUse()) {
+ AddToWorkList(Op.Val); // Remove dead node.
Changed = true;
for (unsigned j = 0, e = Op.getNumOperands(); j != e; ++j)
Ops.push_back(Op.getOperand(j));
More information about the llvm-commits
mailing list