Improve handling of modref params.
authorJan Hubicka <hubicka@ucw.cz>
Thu, 26 Aug 2021 14:57:46 +0000 (16:57 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Thu, 26 Aug 2021 14:57:46 +0000 (16:57 +0200)
commite28ac73af20028f829c4ba1ffd38ea84e7419b0d
treeca72244b2ac18f42d96931b4c06afbbd349947e9
parentc80d7230fba64097e4a2f1c88b189ba46b984519
Improve handling of modref params.

this patch makes insertion to modref access tree smarter when --param
modref-max-bases and moredref-max-refs are hit.  Instead of giving up
we either give up on base alias set (make it equal to ref) or turn the
alias set to 0.  This lets us to track useful info on quite large
functions, such as ggc_free.

gcc/ChangeLog:

* ipa-modref-tree.c (test_insert_search_collapse): Update test.
* ipa-modref-tree.h (modref_base_node::insert): Be smarter when
hiting --param modref-max-refs limit.
(modref_tree:insert_base): Be smarter when hitting
--param modref-max-bases limit. Add new parameter REF.
(modref_tree:insert): Update.
(modref_tree:merge): Update.
* ipa-modref.c (read_modref_records): Update.
gcc/ipa-modref-tree.c
gcc/ipa-modref-tree.h
gcc/ipa-modref.c