[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Nov 8 15:32:55 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.203 -> 1.204
---
Log message:
Allocate the right amount of memory for this vector up front.
---
Diffs of the changes: (+1 -0)
LegalizeDAG.cpp | 1 +
1 files changed, 1 insertion(+)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.203 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.204
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.203 Tue Oct 25 18:47:25 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Tue Nov 8 17:32:44 2005
@@ -409,6 +409,7 @@
// node is only legalized after all of its operands are legalized.
std::map<SDNode*, unsigned> Visited;
std::vector<SDNode*> Order;
+ Order.reserve(DAG.allnodes_end()-DAG.allnodes_begin());
// Compute ordering from all of the leaves in the graphs, those (like the
// entry node) that have no operands.
More information about the llvm-commits
mailing list