<div dir="ltr">Hi,<div><br></div><div>The instructions to build Bolt mention: -DLLVM_ENABLE_PROJECTS="clang;lld;bolt"</div><div><br></div><div>It seems that clang is just a dependency here because you build C++ sources during lit-tests execution, but it's not clear to me why we don't use the host compiler or a prebuilt release here? Is there an intrinsic coupling between clang and Bolt at HEAD?</div><div><br></div><div>Having to build clang at HEAD just to run the bolt test seems like a non-trivial overhead for the casual developer, if the host compiler (or some clang pulled with apt-get or your favorite package manager) would just work.</div><div>Also in CI, even if you have a beefy enough machine, you add risks for the Bolt bot to be broken because Clang/LLVM itself would be broken: so instead of tracking Bolt bugs you end up tracking clang issues. Also the fact that clang being broken implicating you can't test Bolt means that in the meantime new bugs can land in Bolt and complicate auto-bisection.</div><div>(The same question applies to lld I think?)</div><div><br></div><div>Thanks!</div><div><br></div><div>-- </div><div>Mehdi</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 7, 2021 at 5:36 PM Rafael Auler <<a href="mailto:rafaelauler@fb.com" target="_blank">rafaelauler@fb.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">





<div lang="EN-US" style="word-wrap:break-word">
<div>
<p class="MsoNormal">Hi folks, <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><a href="https://github.com/facebookincubator/BOLT" target="_blank">https://github.com/facebookincubator/BOLT</a> branch “main” contains a merge proposal of BOLT into llvm-project. This is llvm from Nov 30<sup>th</sup> with 1016 commits on top of it corresponding
 to the BOLT project.<br>
<br>
These 1016 commits would ideally be committed in a merge commit, merging LLVM as the first parent and BOLT as the second, and would be there only for the purposes of preserving project history. In this way, they should be easily skippable during a bisect of
 LLVM in the same way as the merge commit of flang. These commits represent the linear history of BOLT on top of rebased LLVM, so most commits are not buildable (since we can’t build a very old version of BOLT on top of a recent LLVM base). That’s why this
 is for history/blame only.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We have addressed the issues in <a href="https://github.com/facebookincubator/BOLT/issues/248" target="_blank">
https://github.com/facebookincubator/BOLT/issues/248</a> and we are happy to continue working on any extra suggestions.<br>
<br>
Would it be better if we put this branch as a PR into llvm-project as a way to make it easier for people to review it? I don’t think we can put this into phabricator. However, I guess github’s bot will probably auto-close the PR. Also feel free to open new
 issues against our facebookincubator/BOLT project as a way to review it.<br>
<br>
Thanks<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-style:solid none none;border-top-width:1pt;border-top-color:rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Hans Wennborg <<a href="mailto:hans@chromium.org" target="_blank">hans@chromium.org</a>><br>
<b>Date: </b>Thursday, November 4, 2021 at 5:42 AM<br>
<b>To: </b>Maksim Panchenko <<a href="mailto:maks@fb.com" target="_blank">maks@fb.com</a>><br>
<b>Cc: </b>Xinliang David Li <<a href="mailto:xinliangli@gmail.com" target="_blank">xinliangli@gmail.com</a>>, Fāng-ruì Sòng <<a href="mailto:maskray@google.com" target="_blank">maskray@google.com</a>>, Sriraman Tallam <<a href="mailto:tmsriram@google.com" target="_blank">tmsriram@google.com</a>>, Chris Lattner <<a href="mailto:clattner@llvm.org" target="_blank">clattner@llvm.org</a>>, Andrey Bokhanko <<a href="mailto:andreybokhanko@gmail.com" target="_blank">andreybokhanko@gmail.com</a>>, Rafael Auler <<a href="mailto:rafaelauler@fb.com" target="_blank">rafaelauler@fb.com</a>>, <a href="mailto:vladislav.khmelevskyi@huawei.com" target="_blank">vladislav.khmelevskyi@huawei.com</a>
 <<a href="mailto:vladislav.khmelevskyi@huawei.com" target="_blank">vladislav.khmelevskyi@huawei.com</a>>, <a href="mailto:tstellar@redhat.com" target="_blank">tstellar@redhat.com</a> <<a href="mailto:tstellar@redhat.com" target="_blank">tstellar@redhat.com</a>>, <a href="mailto:joker.eph@gmail.com" target="_blank">joker.eph@gmail.com</a> <<a href="mailto:joker.eph@gmail.com" target="_blank">joker.eph@gmail.com</a>>, <a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a> <<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>>, Nick Desaulniers <<a href="mailto:ndesaulniers@google.com" target="_blank">ndesaulniers@google.com</a>>, <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a> <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>><br>
<b>Subject: </b>Re: Preparing BOLT for LLVM monorepo<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal">Hi Maksim,<br>
<br>
On Tue, Nov 2, 2021 at 9:52 PM Maksim Panchenko <<a href="mailto:maks@fb.com" target="_blank">maks@fb.com</a>> wrote:<br>
> We are still working on finalizing the exact logistics of the merge.<br>
><br>
> However, we expect to follow the Flang project's footsteps and run the<br>
><br>
> "--no-ff" merge to preserve the history of ~1K commits. We would like to<br>
><br>
> ask for help and coordination from the release managers Tom Stellard and<br>
><br>
> Hans Wennborg.<br>
<br>
I'm no longer involved in release management, and don't really have<br>
any opinion on how to merge this.<br>
<br>
Thanks,<br>
Hans</p>
</div>
</div>
</div>

</blockquote></div>