aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/Mangle.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-03-20 23:58:33 +0000
committerDouglas Gregor <dgregor@apple.com>2009-03-20 23:58:33 +0000
commitfa2192042f223b5122a9e17719930f77634fd31f (patch)
tree7b9196112479c182731f8bc15b29c7475f90605f /lib/CodeGen/Mangle.cpp
parent9f9768c1ee1242ca0e665a070038b53f1f0c6799 (diff)
When building the structured initializer list, pre-allocate storage in
its vectors based on the subobject type we're initializing and the (unstructured) initializer list. This eliminates some malloc thrashing when parsing initializers (from 117 vector reallocations down to 0 when parsing Cocoa.h). We can't always pre-allocate the right amount of storage, since designated initializers can cause us to initialize in non-predictable patterns. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Mangle.cpp')
0 files changed, 0 insertions, 0 deletions