Fix SCC discovery in ipa-modref
authorJan Hubicka <jh@suse.cz>
Wed, 14 Oct 2020 08:54:00 +0000 (10:54 +0200)
committerJan Hubicka <jh@suse.cz>
Wed, 14 Oct 2020 08:54:00 +0000 (10:54 +0200)
commit87d75a11a5cb93668ae0bf6d97030e01b2eae3f2
treea98e9a8995f487b732674643955fd899aa74797b
parent2fa5f5c42b625143123850f13625996a0ceb69d8
Fix SCC discovery in ipa-modref

this patch fixes SCC discovery in ipa-modref which is causing misoptimization
of gnat bootstrapped with LTO, PGO and -O3.

I also improved debug info and spotted wrong parameter to ignore_stores_p
(which is probably quite harmless since we only inline matching functions, but
it is better to be consistent).

PR bootstrap/97350
* ipa-modref.c (ignore_edge): Do not ignore inlined edes.
(ipa_merge_modref_summary_after_inlining): Improve debug output and
fix parameter of ignore_stores_p.
gcc/ipa-modref.c