Remove cgraph_node::summary_uid and make cgraph_node::uid really unique.
authorMartin Liska <mliska@suse.cz>
Fri, 8 Jun 2018 12:26:57 +0000 (14:26 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 8 Jun 2018 12:26:57 +0000 (12:26 +0000)
commit746447567a82ce2987f579770fd296ace60f87b1
treec22de406a2a163de859df4f8b0c31de0e34a74a3
parent9d3e0adc2a0e657b2aa384f1392dd2fac77a62d4
Remove cgraph_node::summary_uid and make cgraph_node::uid really unique.

2018-06-08  Martin Liska  <mliska@suse.cz>

* cgraph.c (cgraph_node::remove): Do not recycle uid.
* cgraph.h (symbol_table::release_symbol): Do not pass uid.
(symbol_table::allocate_cgraph_symbol): Do not set uid.
* passes.c (uid_hash_t): Record removed_nodes by their uids.
(remove_cgraph_node_from_order): Use the removed_nodes set.
(do_per_function_toporder): Likwise.
* symbol-summary.h (symtab_insertion): Use cgraph_node::uid
instead of summary_uid.
(symtab_removal): Likewise.
(symtab_duplication): Likewise.
2018-06-08  Martin Liska  <mliska@suse.cz>

* lto-partition.c (lto_balanced_map): Use cgraph_node::uid
instead of summary_uid.

From-SVN: r261315
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/lto/ChangeLog
gcc/lto/lto-partition.c
gcc/passes.c
gcc/symbol-summary.h