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: [patch] expmed.c: Speed up synth_mult.


Hi Zack,

> > 	* expmed.c (alg_code): Add alg_unknown.
> > 	(alg_hash_entry): New.
> > 	(NUM_ALG_HASH_ENTRIES): Likewise.
> > 	(alg_hash): Likewise.
> > 	(synth_mult): Cache the result into alg_hash.
> 
> This is OK.

Thanks!

> How much tuning of the cache size did you do?

None. :-) I would say it's difficult because it really depends on the
source code that you are compiling.  One of these days, I might plot
the number of calls to synth_mult over different cache size.

Kazu Hirata


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