Bail out when ipa_fn_summaries does not contain entry for callee (PR ipa/88958).
authorMartin Liska <mliska@suse.cz>
Mon, 4 Feb 2019 12:19:48 +0000 (13:19 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 4 Feb 2019 12:19:48 +0000 (12:19 +0000)
commit1d546c60983797f7090739e50d4bbccc95515d34
treea706d017b7019be3e3006b0d32ed9912a75860c9
parentb41fe05e92c329e6003c7ab01ba9658bb7e60e17
Bail out when ipa_fn_summaries does not contain entry for callee (PR ipa/88958).

2019-02-04  Martin Liska  <mliska@suse.cz>

PR ipa/88958
* ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
out when ipa_fn_summaries does not contain entry for callee.
2019-02-04  Martin Liska  <mliska@suse.cz>

PR ipa/88958
* gcc.dg/ipa/pr88958.c: New test.

From-SVN: r268516
gcc/ChangeLog
gcc/ipa-fnsummary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr88958.c [new file with mode: 0644]