Commit 63c2d00c by Richard Guenther Committed by Richard Biener

re PR middle-end/28463 (Using -fdump-tree-optimized causes a huge compile time memory regression)

2006-07-24  Richard Guenther  <rguenther@suse.de>

	PR middle-end/28463
	* cgraph.c (cgraph_remove_node): Do not check if dumps
	are enabled.
	* cgraphunit.c (cgraph_optimize): Likewise.

From-SVN: r115714
parent 597ae074
2006-07-24 Richard Guenther <rguenther@suse.de>
PR middle-end/28463
* cgraph.c (cgraph_remove_node): Do not check if dumps
are enabled.
* cgraphunit.c (cgraph_optimize): Likewise.
2006-07-24 Jan Hubicka <jh@suse.cz>
PR rtl-optimization/28071
......
......@@ -509,7 +509,7 @@ cgraph_remove_node (struct cgraph_node *node)
kill_body = true;
}
if (kill_body && !dump_enabled_p (TDI_tree_all) && flag_unit_at_a_time)
if (kill_body && flag_unit_at_a_time)
{
DECL_SAVED_TREE (node->decl) = NULL;
DECL_STRUCT_FUNCTION (node->decl) = NULL;
......
......@@ -1536,7 +1536,6 @@ cgraph_optimize (void)
/* Double check that all inline clones are gone and that all
function bodies have been released from memory. */
if (flag_unit_at_a_time
&& !dump_enabled_p (TDI_tree_all)
&& !(sorrycount || errorcount))
{
struct cgraph_node *node;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment