<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 5, 2014 at 3:23 PM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="im"><br><div class="gmail_quote">On Wed, Feb 5, 2014 at 2:53 PM, Manman Ren <span dir="ltr"><<a href="mailto:manman.ren@gmail.com" target="_blank">manman.ren@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="overflow:hidden">Author: mren<br>
Date: Wed Feb  5 16:53:44 2014<br>
New Revision: 200886<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=200886&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=200886&view=rev</a><br>
Log:<br>
Inliner uses a smaller inline threshold for callees with cold attribute.<br>
<br>
Added command line option inlinecold-threshold to set threshold for inlining<br>
functions with cold attribute. Listen to the cold attribute when it would<br>
decrease the inline threshold.</div></blockquote></div><br></div>You've not gotten any discussion about this or presented any benchmark numbers for this what-so-ever.</div></div></blockquote><div><br></div><div>I thought it is straight-forward to use a lower threshold for cold functions and didn't think this patch is going to have a wide & dramatic impact.</div>
<div><br></div><div>I am not aware of any benchmark in lnt that uses cold attribute. If there is one, please let me know so I can collect some performance number.</div><div><br></div><div>When Diego first introduced the Cold attribute and used it to adjust block weights, there was no request on benchmark numbers. So I assumed negligible performance impact for this patch.</div>
<div><br></div><div>Sorry if this caused regressions. The main purpose of this is performance of instrumentation based PGO.</div><div><br></div><div>Manman</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">
The cold attribute is widely used already and this may have a very dramatic impact. </div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<div class="gmail_extra"> I don't think it is really acceptable to just land a patch that could have such a far reaching impact without even a decent discussion or some benchmark numbers to ensure this doesn't regress things.</div>

</div>
</blockquote></div><br></div></div>