Minor speedup

Marc Espie espie@quatramaran.ens.fr
Sat Jun 8 06:02:00 GMT 2002


In article <200206081254.g58Cssk20669@quatramaran.ens.fr> you write:
>In article <20020608044530.J13411@devserv.devel.redhat.com> you write:
>>On Fri, Jun 07, 2002 at 12:03:38PM -0600, law@redhat.com wrote:
>>> 
>>> I got some interesting data yesterday from profiling the PA port building
>>> my 162 testfiles at -O2.  Here's a trivial fix which improves compile times
>>> by just shy of 1%.
>>> 
>>> Basically we're doing an insane number of calls into free_INSN_LIST_list,
>>> on the order of 90 million.  Roughly 55 million are calls to free an empty
>>> list from within free_deps.  Opps.
>>
>>But then for the remaining 35 million calls the list is checked for NULL
>>twice. Wouldn't be better to go over gcc sources and put performance critical
>>very short routines into headers as inlines (provided we're building
>>with gcc and optimizing)?
>>
>>	Jakub
>>

In fact, if this routine is such a hog, eliminating the extra routine and
calling freelist directly ought to be a win, no ?

(no change in visible interface)



More information about the Gcc-patches mailing list