]> granicus.if.org Git - clang/commit
Use a BumpPtrAllocator to allocate all aspects of CFG, including CFGBlocks, successor...
authorTed Kremenek <kremenek@apple.com>
Mon, 12 Oct 2009 20:55:07 +0000 (20:55 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 12 Oct 2009 20:55:07 +0000 (20:55 +0000)
commitee82d9bdc5025b82de8ce2a4ad4685e0a8b79da9
treeff23fb03017d7f06bebbc48f16a5450fd51fe3d4
parent620d57a293143e3f07d6e4f5ba50020a80f45564
Use a BumpPtrAllocator to allocate all aspects of CFG, including CFGBlocks, successor and predecessor vectors, etc.

Speedup: when doing 'clang-cc -analyze -dump-cfg' (without actual printing, just
CFG building) on the amalgamated SQLite source (all of SQLite in one source
file), runtime reduced by 9%.

This fixes: <rdar://problem/7250745>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83899 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/CFG.h
include/clang/Analysis/FlowSensitive/DataflowSolver.h
lib/Analysis/CFG.cpp