Significantly speed up verifiers for a cgraph_node with many clones.
authorMartin Liska <mliska@suse.cz>
Thu, 7 Mar 2019 15:33:52 +0000 (16:33 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 7 Mar 2019 15:33:52 +0000 (15:33 +0000)
commit606711a1671cc63713b893c4557df967a5a6ac20
treefd2183289f3e715a297915d890a8581a5d771fa4
parent7c3f98ca6567d5b12d28421a4a3deec3b9c52efc
Significantly speed up verifiers for a cgraph_node with many clones.

2019-03-07  Martin Liska  <mliska@suse.cz>

* cgraph.c (cgraph_node::verify_node): Verify with a neighbour
which is equivalent to searching for this in clones chain.
* symtab.c (symtab_node::verify_base): Similarly compare ASM
names with a neighbour and special case first node in a chain.

From-SVN: r269461
gcc/ChangeLog
gcc/cgraph.c
gcc/symtab.c