aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/ChainedIncludesSource.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-01-25 00:35:05 +0000
committerTed Kremenek <kremenek@apple.com>2012-01-25 00:35:05 +0000
commit44d2973b6f39040d012e96ebb422b60e2a4358c1 (patch)
tree3894d120a3383348b52f581e18f7cf1f49930cc5 /clang/lib/Frontend/ChainedIncludesSource.cpp
parentaa7b9aa10dd90f79c37e0af7f4c6a0f9efeb288c (diff)
downloadllvm-44d2973b6f39040d012e96ebb422b60e2a4358c1.zip
llvm-44d2973b6f39040d012e96ebb422b60e2a4358c1.tar.gz
llvm-44d2973b6f39040d012e96ebb422b60e2a4358c1.tar.bz2
Reduce peak memory usage of the static analyzer on sqlite3 (when using inlining) by 30%.
This is accomplished by periodically reclaiming nodes in the graph. This was an optimization done before the CFG was linearized, but the CFG linearization destroyed that optimization since each freshly created node couldn't be reclaimed and we only looked at a window of nodes created between each ProcessStmt. This optimization can be reclaimed my merely expanding the window to N number of nodes. llvm-svn: 148888
Diffstat (limited to 'clang/lib/Frontend/ChainedIncludesSource.cpp')
0 files changed, 0 insertions, 0 deletions