diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-14 22:18:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-14 22:18:23 +0000 |
commit | b134520b866a999711ef737849d1431c2028f866 (patch) | |
tree | c72a1f9a21a09e8d15bb6373a00cb856937776f3 /llvm/lib/Transforms/Utils/LoopSimplify.cpp | |
parent | ebb50a61d26e333c475b32d066d8824e5c60c551 (diff) | |
download | llvm-b134520b866a999711ef737849d1431c2028f866.zip llvm-b134520b866a999711ef737849d1431c2028f866.tar.gz llvm-b134520b866a999711ef737849d1431c2028f866.tar.bz2 |
If we have zero initialized data with external linkage, use .zerofill to
emit it (instead of .space), saving a bit of space in the .o file.
For example:
int foo[100];
int bar[100] = {};
when compiled with C++ or -fno-common results in shrinkage from 1160 to 360
bytes of space. The X86 backend can also do this on darwin.
llvm-svn: 26185
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
0 files changed, 0 insertions, 0 deletions