Minor speedup

Jakub Jelinek jakub@redhat.com
Sat Jun 8 01:45:00 GMT 2002

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)?


More information about the Gcc-patches mailing list