commit | d3cf5fba332fc77f7e72ef58077822606718671d | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Mon Jan 28 16:46:33 2013 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Mon Jan 28 16:46:33 2013 +0000 |
tree | 87fd322e2cd4ff3a4961839b00b8d29dd9169132 | |
parent | d75ff6496bfb599a9edde41681873919d4d44152 [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173692 91177308-0d34-0410-b5e6-96231b3b80d8