re PR ipa/44563 (GCC uses a lot of RAM when compiling a large numbers of functions)
authorRichard Biener <rguenther@suse.de>
Tue, 10 Mar 2015 08:25:31 +0000 (08:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 10 Mar 2015 08:25:31 +0000 (08:25 +0000)
commit40ff136498f39df5732116b55090448bf1be9684
treed1de264ae6e54268322deca2976d4fa689a77be6
parentc457f75178f02049189b3369af3d5ee95adaa166
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
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h