aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-struct-reorg.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2009-11-17 22:18:49 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2009-11-17 21:18:49 +0000
commitd1725344d1c2c627469995c741156ae879bebbc8 (patch)
tree2c582f3342466c9aeceff3be644e2eea6cc14e47 /gcc/ipa-struct-reorg.c
parent9ee6a7405878a611ca76cb1adb04b5fd258b6adc (diff)
downloadgcc-d1725344d1c2c627469995c741156ae879bebbc8.zip
gcc-d1725344d1c2c627469995c741156ae879bebbc8.tar.gz
gcc-d1725344d1c2c627469995c741156ae879bebbc8.tar.bz2
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
Diffstat (limited to 'gcc/ipa-struct-reorg.c')
-rw-r--r--gcc/ipa-struct-reorg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ipa-struct-reorg.c b/gcc/ipa-struct-reorg.c
index 147610a..65777f5 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