summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-01-28 16:46:33 +0000
committerDouglas Gregor <dgregor@apple.com>2013-01-28 16:46:33 +0000
commite97cd90a67ecdd7599eff82ed16231d3e83d2457 (patch)
tree2606e61a9cbf2162d6435eb94acf99fc66d4467b /clang/lib/Format/Format.cpp
parent1258519674ad4c2f6c31d3754e13931881600c93 (diff)
downloadbcm5719-llvm-e97cd90a67ecdd7599eff82ed16231d3e83d2457.tar.gz
bcm5719-llvm-e97cd90a67ecdd7599eff82ed16231d3e83d2457.zip
Eliminate memory allocation from most invocations of
ModuleManager::visit() by keeping a free list of the two data structures used to store state (a preallocated stack and a visitation number vector). Improves -fsyntax-only performance for my modules test case by 2.8%. Modules has pulled ahead by almost 10% with the global module index. llvm-svn: 173692
Diffstat (limited to 'clang/lib/Format/Format.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud