diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-07-19 21:38:56 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-07-19 21:38:56 +0000 |
commit | 83497d9eadd04a0ee57e4858a8f3b7b3cb99a22b (patch) | |
tree | e42ee23d708d2dea9a8e2d1b08c314fa927930a4 /clang/lib/CodeGen/CGCXX.cpp | |
parent | 0b75dc5fa2e0552e7c9f3250e3487cf73dacd32b (diff) | |
download | bcm5719-llvm-83497d9eadd04a0ee57e4858a8f3b7b3cb99a22b.tar.gz bcm5719-llvm-83497d9eadd04a0ee57e4858a8f3b7b3cb99a22b.zip |
When we choose to use zeroinitializer for a trailing portion of an array
constant, don't convert the rest into a packed struct.
If an array constant has a large non-zero portion and a large zero
portion, we want to emit the first part as an array and the rest as a
zeroinitializer if possible. This fixes a memory usage regression from
r333141 when compiling PHP.
llvm-svn: 337498
Diffstat (limited to 'clang/lib/CodeGen/CGCXX.cpp')
0 files changed, 0 insertions, 0 deletions