projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a325511
)
Allocate the right amount of memory for this vector up front.
author
Chris Lattner
<sabre@nondot.org>
Tue, 8 Nov 2005 23:32:44 +0000
(23:32 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 8 Nov 2005 23:32:44 +0000
(23:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24252
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index e17a9080cc3db7d506b8270eabcf476f77ccca7d..eb057548391a65a938a660b844b2390af5f9ecfc 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@
-409,6
+409,7
@@
void SelectionDAGLegalize::LegalizeDAG() {
// 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.