aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2023-03-14 09:10:35 +0100
committerJan Hubicka <jh@suse.cz>2023-03-14 09:10:35 +0100
commit5159a1f1e91e03d4b82808a0062697318232543f (patch)
treea428d749546ac50ad08aa387201fdcaba044bf89 /gcc/expr.cc
parente17936f842d2885447b6b8b82c2fb9cbf2679d7e (diff)
downloadgcc-5159a1f1e91e03d4b82808a0062697318232543f.zip
gcc-5159a1f1e91e03d4b82808a0062697318232543f.tar.gz
gcc-5159a1f1e91e03d4b82808a0062697318232543f.tar.bz2
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 <hubicka@ucw.cz> PR tree-optimization/106896 * profile-count.cc (profile_count::to_sreal_scale): Synchronize implementatoin with probability_in; avoid some asserts.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions