Commit d1725344 by Jan Hubicka Committed by Jan Hubicka

ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile info.


	* ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
	info.

From-SVN: r154271
parent 9ee6a740
2009-11-17 Jan Hubicka <jh@suse.cz>
* ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
info.
2009-11-17 Eric Botcazou <ebotcazou@adacore.com>
* toplev.c (process_options): Remove dead code.
......@@ -1690,7 +1690,10 @@ update_cgraph_with_malloc_call (gimple malloc_stmt, tree context)
src = cgraph_node (context);
dest = cgraph_node (malloc_fn_decl);
cgraph_create_edge (src, dest, malloc_stmt,
0, 0, gimple_bb (malloc_stmt)->loop_depth);
gimple_bb (malloc_stmt)->count,
compute_call_stmt_bb_frequency
(context, gimple_bb (malloc_stmt)),
gimple_bb (malloc_stmt)->loop_depth);
}
/* This function generates set of statements required
......
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