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]

alloc_pool for tree-ssa-pre.c:phi_translate_table




2012-08-19 Dimitrios Apostolou <jimis@gmx.net>

	* gcc/tree-ssa-pre.c (phi_translate_pool): New static global
	alloc_pool, used for allocating struct expr_pred_trans_d for
	phi_translate_table.
	(phi_trans_add, init_pre, fini_pre): Use it, avoids thousand of
	malloc() and free() calls.


This avoids lots of malloc/free calls and slow iterations during numerous htab_delete() in fini_pre(). Tested on pre C++-snapshot, will update info as soon as a post C++ one is available.



Thanks, Dimitris

Attachment: phi_translate_pool.diff
Description: Text document


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