Minor speedup
law@redhat.com
law@redhat.com
Sat Jun 8 06:22:00 GMT 2002
In message <20020608044530.J13411@devserv.devel.redhat.com>, Jakub Jelinek writ
es:
> 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 time
> s
> > 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 critica
> l
> very short routines into headers as inlines (provided we're building
> with gcc and optimizing)?
Basically we'd have to expose the free element cache outside lists.c which
seems like a bad idea. We use this cache to avoid lots of silly
allocations.
jeff
More information about the Gcc-patches
mailing list