This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Whole program optimization and functions-only-called-once.


> 
> I think we shouldn't bypass large-function-growth.  We might want to scale
> it somewhat for hot callgraph edges (and at the same time avoid inlining
> once-called cold functions).  Or even better sort the fibheap according to
> the callgraph edge frequency, not only according to sizes.

We do that for a while.  The fibheap is sorted by benefit that is pretty much
estimated speedup divided by estimated size cost. Speedups are scaled by counts
with profile info and frequencies without it.  (I even had it on slides last week ;))

Honza
> 
> Richard.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]