diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-17 21:18:49 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-17 21:18:49 +0000 |
commit | c083265937e8ccdb925d029f405861e3e3bac8c8 (patch) | |
tree | 2c582f3342466c9aeceff3be644e2eea6cc14e47 /gcc/ipa-struct-reorg.c | |
parent | 8b7c9a5314b6b2096f88969d91e94c2b85c29440 (diff) | |
download | gcc-c083265937e8ccdb925d029f405861e3e3bac8c8.tar.gz |
* ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
info.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154271 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-struct-reorg.c')
-rw-r--r-- | gcc/ipa-struct-reorg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ipa-struct-reorg.c b/gcc/ipa-struct-reorg.c index 147610a43e4..65777f59394 100644 --- a/gcc/ipa-struct-reorg.c +++ b/gcc/ipa-struct-reorg.c @@ -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 |