Improve hasing of anonymous namespace types
authorJan Hubicka <jh@suse.cz>
Sat, 21 Nov 2020 16:41:10 +0000 (17:41 +0100)
committerJan Hubicka <jh@suse.cz>
Sat, 21 Nov 2020 16:41:45 +0000 (17:41 +0100)
commit8ee8afa3a569ff6f8d54516f1e9b9ed01e8c7a31
tree78a2030d4f94362b4133754234c5e43058e65258
parentc84add5c13d292b339e90b154587439e4721a8c5
Improve hasing of anonymous namespace types

* ipa-icf.c (sem_function::equals_wpa): Do not compare ODR type with
-fno-devirtualize.
(sem_item_optimizer::update_hash_by_addr_refs): Hash anonymous ODR
types by TYPE_UID of their main variant.
gcc/ipa-icf.c