[llvm-commits] [llvm] r153812 - in /llvm/trunk: include/llvm/Analysis/ include/llvm/Transforms/IPO/ lib/Analysis/ lib/Transforms/IPO/ test/Transforms/Inline/

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Apr 11 16:13:12 PDT 2012


On Apr 11, 2012, at 4:01 PM, Chandler Carruth <chandlerc at google.com> wrote:

> On Wed, Apr 11, 2012 at 9:46 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:
> 
> On Apr 11, 2012, at 11:33 AM, Eli Friedman <eli.friedman at gmail.com> wrote:
> 
> > If your patch consistently leads to lower computed inlining costs,
> > perhaps we should lower the inlining threshold?
> 
> The inlining thresholds haven't been calibrated for many years. It is time to recalibrate.
> 
> Somebody should plot the code size vs speed curve and pick thresholds for -Oz, -Os, -O2, and -O3.
> 
> I actually plan to do this, but haven't had time, and would like to finish changes to the inliner, or to things that dramatically effect the speed we see so that the numbers are more stable / meaningful.

Makes sense.

> If others have a faster way of generating this data than I do (mine would take many days on a benchmarking rig), by all means.

I would run SPEC with many threshold settings, recording aggregate code size and SPEC score. Many days sounds reasonable.

Thanks for doing this.

/jakob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120411/f72b4271/attachment.html>


More information about the llvm-commits mailing list