On Mon, May 6, 2013 at 11:56 AM, Nico Weber <
tha...@chromium.org> wrote:
> On Mon, May 6, 2013 at 8:50 AM, Tony Gentilcore <
to...@chromium.org> wrote:
>>
>> The windows official build builds with LinkTimeCodeGeneration.
>> Recently LTCG was experimentally disabled for WebCore and that led to
>> a 30% regression on some Dromaeo benchmarks. Granted Dromaeo has some
>> really sensitive tight loops, but I was still quite surprised by how
>> big of an impact link time optimization can have.
>>
>> That got me thinking about whether we can get this sweetness on other
>> platforms (particularly Android where it seems to be supported now in
>> the freshly minted Android NDK r8e).
>>
>> Has anyone played around with gcc or llvm's link time optimization
>> (-flto)? Are there reasons we don't enable it for official builds? If
>> not, I'd like to experiment with enabling it.
>
>
> I played with it in llvm about a year ago. I ran into several compiler
> crashes (some got fixed). Linking took ~16GB and crashed after 2h
> (
http://llvm.org/bugs/show_bug.cgi?id=12400), so I eventually gave up on it.
> It's probably worth looking at this again.
>
> Rafael Espindola played with this during his time at Mozilla too; he got it
> working but the results weren't that impressive:
>
https://blog.mozilla.org/respindola/2011/03/04/lto-on-os-x/ (also from a
> while ago).
>
> If you want to play with it, I think these are the CLs I used:
>
https://codereview.chromium.org/9903020/
>
https://codereview.chromium.org/9789003/
not memory usage. It's probably worth trying again.