[PATCH] Move DCE's worklist from GC to malloced memory

Andrew Pinski pinskia@physics.uc.edu
Fri Nov 26 23:45:00 GMT 2004


I have a couple of these moving worklists from GC memory to malloced
memory patches, at the same time I moved them to use VEC instead
of varray_type which should give a compile time speedup.

This patch moves the tree-ssa-dce's worklist to malloced memory
so that we don't allocate too much in the GC memory and since we
know the life time of the array and we know that we will not call
ggc_collect inbetween and we will still have reference to trees which
is contained in the vector.

OK? Bootstrapped and tested on ppc-darwin.

This reduces the overall GC memory but I don't remember by how much.

Thanks,
Andrew Pinski

ChangeLog:

	* tree-ssa-dce.c (worklist): Change type to VEC(tree_on_heap)*.
	(mark_stmt_necessary): Call the VEC code instead of the VARRAY code.
	(mark_operand_necessary): Likewise.
	(propagate_necessity): Likewise.
	(mark_really_necessary_kill_operand_phis): Likewise.
	(tree_dce_init): Allocate worklist with the VEC code.
	(tree_dce_done): Free the worklist.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: moveWorksetDCE.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20041126/f81243cc/attachment.txt>


More information about the Gcc-patches mailing list