[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Jan 13 11:53:28 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.13 -> 1.14
---
Log message:
Don't forget the existing root.
---
Diffs of the changes: (+2 -4)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.13 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.14
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.13 Thu Jan 13 11:59:43 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Thu Jan 13 13:53:14 2005
@@ -878,10 +878,8 @@
ConstantsOut.clear();
// Turn all of the unordered chains into one factored node.
- switch (UnorderedChains.size()) {
- case 0: break;
- case 1: DAG.setRoot(UnorderedChains[0]); break;
- default:
+ if (!UnorderedChains.empty()) {
+ UnorderedChains.push_back(DAG.getRoot());
DAG.setRoot(DAG.getNode(ISD::TokenFactor, MVT::Other, UnorderedChains));
}
More information about the llvm-commits
mailing list