summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.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
commit6d00c993f517196e916b5b5585a60e362dfef6a9 (patch)
treedfb463e6fec877548de11ba743264eaf9e55fa6c /clang/lib/CodeGen/CodeGenModule.cpp
parenta792bad8248a8c7f5f91a713cc61b87d18b771e0 (diff)
downloadbcm5719-llvm-6d00c993f517196e916b5b5585a60e362dfef6a9.tar.gz
bcm5719-llvm-6d00c993f517196e916b5b5585a60e362dfef6a9.zip
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. llvm-svn: 67421
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud