Fix ipa-modref signature updates
authorJan Hubicka <jh@suse.cz>
Tue, 27 Oct 2020 15:25:12 +0000 (16:25 +0100)
committerJan Hubicka <jh@suse.cz>
Tue, 27 Oct 2020 15:25:12 +0000 (16:25 +0100)
commitfe90c504416e6423c6a56f37a9265deabdb03de9
tree287f2371095262766b08226c9ce621c1a3b149c1
parente579f66c3c6566e94be842bea7f2a93370489626
Fix ipa-modref signature updates

PR ipa/97586
* ipa-modref-tree.h (modref_tree::remap_params): New member function.
* ipa-modref.c (modref_summaries_lto::duplicate): Check that
optimization summaries are not duplicated.
(remap_arguments): Remove.
(modref_transform): Rename to ...
(update_signature): ... this one; handle also lto summary.
(pass_ipa_modref::execute): Update signatures here rather
than in transform hook.
gcc/ipa-modref-tree.h
gcc/ipa-modref.c