This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Minor speedup
- From: Jakub Jelinek <jakub at redhat dot com>
- To: law at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 8 Jun 2002 04:45:30 -0400
- Subject: Re: Minor speedup
- References: <13853.1023473018@porcupine.cygnus.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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