summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-30 21:04:06 +0000
committerDan Gohman <gohman@apple.com>2008-06-30 21:04:06 +0000
commita76e60a77a093be86e843d2268e0ae995815c5ff (patch)
treef2da8b908fa11c2079d7330c3082c6a1f2499cbe /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent4246cf8eea0a385de946a89094fa8ef52908067d (diff)
downloadbcm5719-llvm-a76e60a77a093be86e843d2268e0ae995815c5ff.tar.gz
bcm5719-llvm-a76e60a77a093be86e843d2268e0ae995815c5ff.zip
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. llvm-svn: 52926
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud