mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
Allocate the right amount of memory for this vector up front.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24252 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a32551197a
commit
0d902a9c74
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user