commit | 8933623b91df29c3689a0fa5c0e48d72ebb760c9 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Mon Mar 29 23:34:08 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Mon Mar 29 23:34:08 2010 +0000 |
tree | 2db899fdf51f0bcd897fb4f73edb2022d00fe5cc | |
parent | b551aa4da514f71dc8c0e1e07a44b754d3a68d94 [diff] |
Optimize PartialDiagnostic's memory-allocation behavior by placing a cache of PartialDiagnostic::Storage objects into an allocator within the ASTContext. This eliminates a significant amount of malloc traffic, for a 10% performance improvement in -fsyntax-only wall-clock time with 403.gcc's combine.c. Also, eliminate the RequireNonAbstractType hack I put in earlier, which was but a symptom of this larger problem. Fixes <rdar://problem/7806091>. llvm-svn: 99849