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: Minor speedup


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


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