diff options
author | Dan Gohman <gohman@apple.com> | 2008-06-30 21:04:06 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-06-30 21:04:06 +0000 |
commit | cf8462f3004d3fc72217d09e4b3f135d68a50e9d (patch) | |
tree | 41ac988716e958ad839b3999964eb1b840b078cd /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 87060f55f21a1076be83306f2efb97887d3d7654 (diff) |
Use reserve.
SelectionDAG::allnodes_size is linear, but that doesn't appear to
outweigh the benefit of reducing heap traffic. If it does become a
problem, we should teach SelectionDAG to keep a count of how many
nodes are live, because there are several other places where that
information would be useful as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions