Detect unused parameters in ipa-modref
authorJan Hubicka <jh@suse.cz>
Sun, 29 Nov 2020 15:27:35 +0000 (16:27 +0100)
committerJan Hubicka <jh@suse.cz>
Sun, 29 Nov 2020 15:27:35 +0000 (16:27 +0100)
commit3350e59f2985469b2472e4d9a6d387337da4519b
tree18dd9648cfcb5d38c93364cb1b2526ded9db7699
parentf59be8dfbd85a7f8face7340950503750a8bfddb
Detect unused parameters in ipa-modref

* ipa-modref.c (modref_lattice::merge): Do nothing if F is EAF_UNUSED.
(analyze_parms): Detect unused params.
(modref_merge_call_site_flags): Merge correct EAF_UNUSED.
gcc/ipa-modref.c