diff options
author | Richard Biener <rguenther@suse.de> | 2015-03-10 08:25:31 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-03-10 08:25:31 +0000 |
commit | 40ff136498f39df5732116b55090448bf1be9684 (patch) | |
tree | d1de264ae6e54268322deca2976d4fa689a77be6 /gcc/cgraph.h | |
parent | c457f75178f02049189b3369af3d5ee95adaa166 (diff) | |
download | gcc-40ff136498f39df5732116b55090448bf1be9684.zip gcc-40ff136498f39df5732116b55090448bf1be9684.tar.gz gcc-40ff136498f39df5732116b55090448bf1be9684.tar.bz2 |
re PR ipa/44563 (GCC uses a lot of RAM when compiling a large numbers of functions)
2015-03-10 Richard Biener <rguenther@suse.de>
PR middle-end/44563
* cgraph.h (struct cgraph_edge_hasher): Add hash overload
for compare_type.
* cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
(cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
(cgraph_add_edge_to_call_site_hash): Likewise.
(cgraph_node::get_edge): Likewise.
(cgraph_edge::set_call_stmt): Likewise.
(cgraph_edge::remove_caller): Likewise.
From-SVN: r221308
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 2b96b6bc..99af026 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -788,6 +788,7 @@ struct cgraph_edge_hasher : ggc_hasher<cgraph_edge *> typedef gimple compare_type; static hashval_t hash (cgraph_edge *); + static hashval_t hash (gimple); static bool equal (cgraph_edge *, gimple); }; |