commit | 0d7db6f79a61803fff87d12d9c75c0f54d863d10 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Feb 14 22:18:23 2006 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Feb 14 22:18:23 2006 +0000 |
tree | ca703cb31c49a34cab6302cb08fab6f9c1f3b03a | |
parent | ae9a84b9be2df23be256e48d7749eaec3a016477 [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26185 91177308-0d34-0410-b5e6-96231b3b80d8