<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 24, 2021 at 4:53 PM Fāng-ruì Sòng via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</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">On 2021-08-24, Chris Tetreault wrote:<br>
>Let me clarify that when I say “it’s fine to begin removing LPM in LLVM 14”, I mean that it’s fine to begin removing LPM once LLVM 14 is released, and the version string in main is set to 15.<br>
<br>
While I think such a deprecation and removal policy may be fine for many non-trivial things, asking<br>
this may be too much for the pass manager. </blockquote><div><br></div><div>Why is that? Is there a significant cost to keep the pass manager in LLVM for the next 5 months?</div><div>Otherwise it would be nice to release 14 with a release notes that indicates what will be removed in 15 on this aspect.</div><div><br></div><div>There are likely things that can be removed quickly already (like any uses of the LPM in clang/lld/...) and keep only the support in opt for now.</div><div><br></div><div>-- </div><div>Mehdi</div><div><br></div><div><br></div><div><br></div><div> </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">With a grain of salt, "downstreams are on their own." New<br>
PM migration and legacy PM removal has been repeatedly forewarned.  I think llvm-project has done<br>
above and beyond what it was expected.  The flip in git was done in February.<br>
<br>
After 13.0.0 is released for, say 2 months, which additional attests its robustness, I think<br>
removing non-codegen legacy PM pieces should be fine.<br>
<br>
>From: llvm-dev <<a href="mailto:llvm-dev-bounces@lists.llvm.org" target="_blank">llvm-dev-bounces@lists.llvm.org</a>> On Behalf Of Chris Tetreault via llvm-dev<br>
>Sent: Tuesday, August 24, 2021 3:39 PM<br>
>To: Arthur Eubanks <<a href="mailto:aeubanks@google.com" target="_blank">aeubanks@google.com</a>>; Fāng-ruì Sòng <<a href="mailto:maskray@google.com" target="_blank">maskray@google.com</a>><br>
>Cc: <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
>Subject: Re: [llvm-dev] [RFC] Deprecating the legacy pass manager for the optimization pipeline<br>
><br>
><br>
>WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.<br>
>Downstreams could be re-enabling the legacy pass manager in CMake. It’s still there, and still supported. If a downstream has made non-trivial changes to the pass pipeline for legacy pass manager, it’s going to be a ton of work to ensure performance parity when enabling new pass manager.<br>
><br>
>I think, if LLVM is built with LLVM_ENABLE_NEW_PASS_MANAGER set to OFF, then you should get a big scary warning at CMake configure time, but clang/opt should not complain. If LLVM is built with DLLVM_ENABLE_NEW_PASS_MANAGER set to ON, but the flag is passed to clang/opt to build using the legacy pass manager, you should get a warning from clang/opt.<br>
><br>
>In my opinion, if these deprecation warnings make it in for LLVM 13, then it’s fine to begin removing LPM in LLVM 14.<br>
><br>
>thanks,<br>
>   Chris Tetreault<br>
><br>
>From: Arthur Eubanks <<a href="mailto:aeubanks@google.com" target="_blank">aeubanks@google.com</a><mailto:<a href="mailto:aeubanks@google.com" target="_blank">aeubanks@google.com</a>>><br>
>Sent: Tuesday, August 24, 2021 1:47 PM<br>
>To: Fāng-ruì Sòng <<a href="mailto:maskray@google.com" target="_blank">maskray@google.com</a><mailto:<a href="mailto:maskray@google.com" target="_blank">maskray@google.com</a>>><br>
>Cc: Chris Tetreault <<a href="mailto:ctetreau@quicinc.com" target="_blank">ctetreau@quicinc.com</a><mailto:<a href="mailto:ctetreau@quicinc.com" target="_blank">ctetreau@quicinc.com</a>>>; <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><mailto:<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>>; Tom Stellard <<a href="mailto:tstellar@redhat.com" target="_blank">tstellar@redhat.com</a><mailto:<a href="mailto:tstellar@redhat.com" target="_blank">tstellar@redhat.com</a>>><br>
>Subject: Re: [llvm-dev] [RFC] Deprecating the legacy pass manager for the optimization pipeline<br>
><br>
><br>
>WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.<br>
>If nobody is setting -DLLVM_ENABLE_NEW_PASS_MANAGER=off then I'm not sure that we need to go through the whole deprecation dance. Is there anybody doing that?<br>
><br>
>But if we do the deprecation dance, should it be a CMake warning or a clang warning? I'm not sure people will notice a CMake warning.<br>
>And would putting that in the 13.x branch be good enough to start removing after 14.x?<br>
><br>
>On Tue, Aug 24, 2021 at 12:26 PM Fāng-ruì Sòng <<a href="mailto:maskray@google.com" target="_blank">maskray@google.com</a><mailto:<a href="mailto:maskray@google.com" target="_blank">maskray@google.com</a>>> wrote:<br>
>On Tue, Aug 24, 2021 at 12:21 PM Chris Tetreault <<a href="mailto:ctetreau@quicinc.com" target="_blank">ctetreau@quicinc.com</a><mailto:<a href="mailto:ctetreau@quicinc.com" target="_blank">ctetreau@quicinc.com</a>>> wrote:<br>
>><br>
>> Since deprecating something is giving warning that it’s going to be removed, I don’t think it’s fair to deprecate and remove in one step. If legacy pass manager isn’t currently formally deprecated (as in, loudly complains when you try to use it), then I’d personally like to see it deprecated for a release before any steps to completely remove it are taken.<br>
><br>
>I just wanted to say the same thing:)<br>
><br>
>I don't mind that we install a warning for -DLLVM_ENABLE_NEW_PASS_MANAGER=off<br>
>in the release/13.x branch so that the signal is clearer to downstream users.<br>
><br>
>> From: llvm-dev <<a href="mailto:llvm-dev-bounces@lists.llvm.org" target="_blank">llvm-dev-bounces@lists.llvm.org</a><mailto:<a href="mailto:llvm-dev-bounces@lists.llvm.org" target="_blank">llvm-dev-bounces@lists.llvm.org</a>>> On Behalf Of Arthur Eubanks via llvm-dev<br>
>> Sent: Tuesday, August 24, 2021 12:10 PM<br>
>> To: Fangrui Song <<a href="mailto:maskray@google.com" target="_blank">maskray@google.com</a><mailto:<a href="mailto:maskray@google.com" target="_blank">maskray@google.com</a>>><br>
>> Cc: llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><mailto:<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>>><br>
>> Subject: Re: [llvm-dev] [RFC] Deprecating the legacy pass manager for the optimization pipeline<br>
>><br>
>><br>
>><br>
>> WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.<br>
>><br>
>> I probably should have said "deprecating and removing".<br>
>><br>
>><br>
>><br>
>> My intention was to remove it completely. -DLLVM_ENABLE_NEW_PASS_MANAGER wouldn't do anything and we'd remove the -flegacy-pass-manaager/-fexperimental-new-pass-manager flags, as well as the corresponding lld flags.<br>
>><br>
>><br>
>><br>
>> On Tue, Aug 24, 2021 at 12:02 PM Fangrui Song <<a href="mailto:maskray@google.com" target="_blank">maskray@google.com</a><mailto:<a href="mailto:maskray@google.com" target="_blank">maskray@google.com</a>>> wrote:<br>
>><br>
>> On 2021-08-24, Arthur Eubanks via llvm-dev wrote:<br>
>> >The new pass manager has been on by default since the 13 branch. Now that<br>
>> >we've branched for 14, I'd like to start the process of deprecating and<br>
>> >removing legacy pass manager support for the optimization pipeline. This<br>
>> >includes clang, opt, and lld LTO support.<br>
>> ><br>
>> >Note that this doesn't apply to the codegen pipeline since there's no new<br>
>> >pass manager support for that yet.<br>
>> ><br>
>> >Are there any objections?<br>
>><br>
>> "deprecating" and 'removing" are different.<br>
>><br>
>> For 14.0.0, do you plan that -DLLVM_ENABLE_NEW_PASS_MANAGER=off will<br>
>> give a warning or will be completely unsupported?<br>
><br>
><br>
><br>
>--<br>
>宋方睿<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>