IPA: fix profile handling in IRA
authorMartin Liska <mliska@suse.cz>
Tue, 13 Oct 2020 14:44:47 +0000 (16:44 +0200)
committerMartin Liska <mliska@suse.cz>
Thu, 15 Oct 2020 07:56:55 +0000 (09:56 +0200)
commit508e2d88a4c512e8b8685cf5ba201ad48e6bb58d
tree418eecfd7b1df7cb9ccd6d12f794a03733c7971a
parenta0504b3d7c39d78cd9f50a52c49edb0113eadea5
IPA: fix profile handling in IRA

gcc/ChangeLog:

PR ipa/97295
* profile-count.c (profile_count::to_frequency): Move part of
gcc_assert to STATIC_ASSERT.
* regs.h (REG_FREQ_FROM_BB): Do not use count.to_frequency for
a function that does not have count_max initialized.
gcc/profile-count.c
gcc/regs.h