<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 22, 2016, at 3:34 PM, via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div class="">Hi Teresa,</div><div class=""><br class=""></div><div class="">Impressive results, indeed! (But no less is expected from an Itanium alumni... ;-))</div><div class=""><br class=""></div><div class="">One question, if you don't mind. In the blog post you wrote: "<span style="text-indent: 10px; background-color: rgba(255, 255, 255, 0);" class="">In a few cases ThinLTO even outperforms full LTO, most likely because the higher scalability of ThinLTO allows using a more aggressive backend optimization pipeline (similar to that of a non-LTO build)." Is it due to optimizations not working (in full LTO case) after hitting some internal limits? </span></div></div></div></blockquote><div><br class=""></div><div>No, is a static decision on the optimization pipeline: we run strictly more optimization passes with ThinLTO.</div><div><br class=""></div><div>See: populateThinLTOPassManager vs populateLTOPassManager: <a href="https://github.com/llvm-mirror/llvm/blob/master/lib/Transforms/IPO/PassManagerBuilder.cpp#L773" class="">https://github.com/llvm-mirror/llvm/blob/master/lib/Transforms/IPO/PassManagerBuilder.cpp#L773</a></div><div><br class=""></div><div>— </div><div>Mehdi</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="auto" class=""><div class=""><span style="text-indent: 10px; background-color: rgba(255, 255, 255, 0);" class="">If so, my understanding is that these limits are expressed in units not affected by IPA representation (like function size, number of basic blocks, etc, *not* total memory consumption) -- how ThinLTO helps to stay within them?</span></div><div class=""><div style="text-indent: 10px;" class=""><br class=""></div><div style="text-indent: 10px;" class="">Yours,</div><div style="text-indent: 10px;" class="">Andrey</div></div><div class=""><br class="">22 июля 2016 г., в 22:36, Teresa Johnson via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> написал(а):<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class="">Hi Vikram,<div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class="">I'm not sure what part got committed in the 3.8 timeframe - it looks like that was released back in March? A number of fixes have gone in since then so I would stick with a more recent version. The ThinLTO in trunk and (presumably 3.9 which seems to have not yet gone out?) is complete and working with multiple threads using gold. </div><div class=""><br class=""></div><div class="">The distributed build support is also in (which needs support in the build system however), although I am fixing a few bugs right now that popped up in testing our internal apps. Which distributed build system do you use? We have support coming out in Bazel, which is our open sourced distributed build system.</div><div class=""><br class=""></div><div class="">Let me know if you run into any issues or have any other questions!</div><div class=""><br class=""></div><div class="">Teresa</div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Jul 22, 2016 at 12:15 PM, Adve, Vikram Sadanand via llvm-dev <span dir="ltr" class=""><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">First, kudos on the ThinLTO results reported in your blog post — they’re impressive and the system sounds really well engineered.<br class="">
<br class="">
I’m starting to try it out on a large piece of software and I’d like to make sure I know what to expect.  The blog said it will be available in clang-3.9 but both clang-3.8 and trunk seem to have some degree of support for it.  What is the status of ThinLTO in 3.8 (preferably) or trunk (otherwise)?  Are either of these usable with multiple threads?  What about for a distributed build?<br class="">
<br class="">
Thanks!<br class="">
<br class="">
-—Vikram<br class="">
<br class="">
// Vikram S. Adve<br class="">
// Professor, Department of Computer Science<br class="">
// University of Illinois at Urbana-Champaign<br class="">
// <a href="mailto:vadve@illinois.edu" class="">vadve@illinois.edu</a><br class="">
// <a href="http://llvm.org/" rel="noreferrer" target="_blank" class="">http://llvm.org</a><br class="">
<br class="">
_______________________________________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
</blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><span style="font-family: Times; font-size: inherit;" class=""><table cellspacing="0" cellpadding="0" class=""><tbody class=""><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small" class=""><td nowrap="" style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px" class="">Teresa Johnson |</td><td nowrap="" style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px" class=""> Software Engineer |</td><td nowrap="" style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px" class=""> <a href="mailto:tejohnson@google.com" target="_blank" class="">tejohnson@google.com</a> |</td><td nowrap="" style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px" class=""> 408-460-2413</td></tr></tbody></table></span></div>
</div>
</div></blockquote><blockquote type="cite" class=""><div class=""><span class="">_______________________________________________</span><br class=""><span class="">LLVM Developers mailing list</span><br class=""><span class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a></span><br class=""><span class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></span><br class=""></div></blockquote></div>_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></body></html>