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: [RFC/RFA] speed up cp_genericize a little


Andrew Pinski <pinskia@physics.uc.edu> writes:

> I noticed that a large amount of the time while "genericizing" in
> htab_find_slot but I also notice that we don't need a full fledge
> hashtable but only a pointer set.  This patch changes the hashtable
> to be a pointer set and should speed up C++ compiling (even at -O0).
> (Note I did not do timings but I know that htab_find_slot is very heavy
> weight and this should speed it up no matter what.
> 
> OK? Bootstrapped on powerpc-darwin with no regressions.
> 
> Thanks,
> Andrew Pinski
> 
> ChangeLog:
> 
> 	* cp-gimplify.c: Include pointer-set.h
> 	(cp_genericize_r): Use pointer_sets instead of a hashtable.
> 	Also instert the new statement for CLEANUP_STMT.
> 	(cp_genericize): Use pointer_sets instead of a hashtable.
> 	* Make-lang.in (cp-gimplify.o): Depend on pointer-set.h.

This is OK.


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