https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106896

--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jan Hubicka <hubi...@gcc.gnu.org>:

https://gcc.gnu.org/g:5159a1f1e91e03d4b82808a0062697318232543f

commit r13-6652-g5159a1f1e91e03d4b82808a0062697318232543f
Author: Jan Hubicka <j...@suse.cz>
Date:   Tue Mar 14 09:10:35 2023 +0100

    Fix overactive sanity check in profile_count::to_sreal_scale

    As discussed in the PR log, profile_count::to_cgraph_frequency was
originally
    intended to work across function boundary and has some extra logic and
sanity
    check for that.  It is used only within single function and with current
    API it can not really work well globally, so this patch synchronizes its
    implementation with probability_in which does similar job but to determine
    relative probability.

    gcc/ChangeLog:

    2023-03-14  Jan Hubicka  <hubi...@ucw.cz>

            PR tree-optimization/106896
            * profile-count.cc (profile_count::to_sreal_scale): Synchronize
            implementatoin with probability_in; avoid some asserts.

Reply via email to