ipa-icf: skip variables with body_removed
authorMartin Liska <mliska@suse.cz>
Wed, 18 May 2022 13:07:53 +0000 (15:07 +0200)
committerMartin Liska <mliska@suse.cz>
Thu, 23 Jun 2022 04:07:22 +0000 (06:07 +0200)
commit31ce821a790caec8a2849dd67a9847e78a33d14c
tree2f699ba08b481200366124665498f779bc55e712
parent7f52df186de41284b9976ea461381e168da5749f
ipa-icf: skip variables with body_removed

Similarly to cgraph_nodes, it may happen that body_removed is set
during merging of symbols.

PR ipa/105600

gcc/ChangeLog:

* ipa-icf.cc (sem_item_optimizer::filter_removed_items):
Skip variables with body_removed.
gcc/ipa-icf.cc