re PR ipa/82879 (ICE in max, at profile-count.h:889)
authorJan Hubicka <hubicka@ucw.cz>
Thu, 9 Nov 2017 14:05:14 +0000 (15:05 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 9 Nov 2017 14:05:14 +0000 (14:05 +0000)
commite4373d41d67060e14bab0c984fb9f7cbc4c93f1b
treefb9d5143e4e5fd9e929fbb4c13e3bd4b71aaaa40
parenta3a6d41f4610c67b9905b3796e441397cc240178
re PR ipa/82879 (ICE in max, at profile-count.h:889)

PR ipa/82879
* ipa-inline-transform.c (update_noncloned_frequencies): Use
profile_count::adjust_for_ipa_scaling.
* tree-inline.c (copy_bb, copy_cfg_body): Likewise.
* profile-count.c (profile_count::adjust_for_ipa_scaling): New member
function.
* profile-count.h (profile_count::adjust_for_ipa_scaling): Declare.

From-SVN: r254582
gcc/ChangeLog
gcc/ipa-inline-transform.c
gcc/profile-count.c
gcc/profile-count.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr82879.c [new file with mode: 0644]
gcc/tree-inline.c