alloc_pool for tree-ssa-pre.c:phi_translate_table

Dimitrios Apostolou jimis@gmx.net
Sun Aug 19 18:30:00 GMT 2012



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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: phi_translate_pool.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120819/4af8c94c/attachment.ksh>


More information about the Gcc-patches mailing list