<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">This also came up during the LLVM Distributor's conference talk on PGO (<a href="https://github.com/ClangBuiltLinux/llvm-distributors-conf-2021/issues/4" class="">https://github.com/ClangBuiltLinux/llvm-distributors-conf-2021/issues/4</a>).<div class=""><br class=""></div><div class="">Honestly I'm not actually convinced there's that much difference between carefully selected and curated collections of PGO data, and building a few "Hello World" type simple programs.</div><div class=""><br class=""></div><div class="">When I was working on Clang at Apple much of our instrumentation showed that process launch time was the most consistent place that we could optimize performance to get significant wins that were pretty universal.</div><div class=""><br class=""></div><div class="">When I added the in-tree multi-stage PGO that used LIT to run instrumented compiles, I found that just the one C++ hello-world program had something crazy like a 6% performance improvement. I'd love to see us add a few more source files into that system so that we could tune it a bit, but I never had the time.</div><div class=""><br class=""></div><div class="">-Chris</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 8, 2021, at 1:39 PM, Shoaib Meenai <<a href="mailto:smeenai@fb.com" class="">smeenai@fb.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">(now actually CCing him correctly)<br class=""><br class="">On 10/8/21, 11:08 AM, "cfe-dev on behalf of Shoaib Meenai via cfe-dev" <<a href="mailto:cfe-dev-bounces@lists.llvm.org" class="">cfe-dev-bounces@lists.llvm.org</a> on behalf of <a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:<br class=""><br class=""> CCing Chris; I remember discussing something like this with him at a developer meeting, but I don't remember his recommendation from the time :)<br class=""><br class=""> On 10/7/21, 1:10 PM, "cfe-dev on behalf of Tom Stellard via cfe-dev" <<a href="mailto:cfe-dev-bounces@lists.llvm.org" class="">cfe-dev-bounces@lists.llvm.org</a> on behalf of <a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:<br class=""><br class=""> Hi,<br class=""><br class=""> I'm trying to generate profile data for clang by building the some of the packages<br class=""> we ship in Fedora Linux. I'm trying to decide how many packages to build, is<br class=""> there much advantage to building 1000 vs something substantially less, like 100?<br class=""><br class=""> -Tom<br class=""><br class=""> _______________________________________________<br class=""> cfe-dev mailing list<br class=""> <a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class=""> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a> <br class=""><br class=""> _______________________________________________<br class=""> cfe-dev mailing list<br class=""> <a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class=""> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a> <br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>