<div dir="ltr">There's no official timeline for switching to the NPM, but I am trying to get it ready ASAP.<div>What flags are you using for code size? I'm not familiar with the internals of the NPM optimization passes especially in regards to code size, adding some people who may be more familiar.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 22, 2020 at 7:51 AM Sjoerd Meijer 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:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(32,31,30);font-size:14.6667px;background-color:rgb(255,255,255);display:inline">(NPM:<span> </span></span><span style="margin:0px;font-size:14.6667px;color:rgb(32,31,30);background-color:rgb(255,255,255)">new</span><span style="color:rgb(32,31,30);font-size:14.6667px;background-color:rgb(255,255,255);display:inline"><span> </span></span><span style="margin:0px;font-size:14.6667px;color:rgb(32,31,30);background-color:rgb(255,255,255)">pass</span><span style="color:rgb(32,31,30);font-size:14.6667px;background-color:rgb(255,255,255);display:inline"><span> </span></span><span style="margin:0px;font-size:14.6667px;color:rgb(32,31,30);background-color:rgb(255,255,255)">manager</span><span style="color:rgb(32,31,30);font-size:14.6667px;background-color:rgb(255,255,255);display:inline">; 
 LPM: legacy<span> </span></span><span style="margin:0px;font-size:14.6667px;color:rgb(32,31,30);background-color:rgb(255,255,255)">pass</span><span style="color:rgb(32,31,30);font-size:14.6667px;background-color:rgb(255,255,255);display:inline"><span> </span></span><span style="margin:0px;font-size:14.6667px;color:rgb(32,31,30);background-color:rgb(255,255,255)">manager</span><span style="color:rgb(32,31,30);font-size:14.6667px;background-color:rgb(255,255,255);display:inline">)</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(32,31,30);font-size:14.6667px;background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div><font color="#201f1e"><span style="font-size:14.6667px">In a first quick experiment today I compared code-size of the LMP vs. the NMP for the CSiBE benchmark (and some other), and this shows code-size increases with the NPM that would probably
 be unacceptable for us. So, now I am wondering how/if we need to mitigate this, and have a bunch of questions.</span></font></div>
<div><font color="#201f1e"><span style="font-size:14.6667px"><br>
</span></font></div>
<div><font color="#201f1e"><span style="font-size:14.6667px">As I've noticed quite some activity around the NPM recently, I am first of all curious if there's an idea or estimate when the NPM will be enabled? And sorry if I missed this. That would
 give us an idea how much time we have to tune the NMP and the pipeline for code-size, which I think would be the obvious mitigation. Other questions would be if the NPM is mostly tuned for performance at the moment, if others have observed code-size increases
 too, and if flipping the switch from the LPM to NPM would be for all optimisation levels at the same time, or if we e.g. will fall back to the old one for some?</span></font></div>
<div><font color="#201f1e"><span style="font-size:14.6667px"><br>
</span></font></div>
<div><font color="#201f1e"><span style="font-size:14.6667px">Thanks,</span></font></div>
<div><font color="#201f1e"><span style="font-size:14.6667px">Sjoerd.</span></font></div>
</div>

_______________________________________________<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>