diff options
author | Eugene Rozenfeld <erozen@microsoft.com> | 2024-03-26 16:28:08 -0700 |
---|---|---|
committer | Eugene Rozenfeld <erozen@microsoft.com> | 2024-04-03 17:28:30 -0700 |
commit | fe385c219994f6d5c1ffe00bcaf5a62c3d18caaf (patch) | |
tree | 1e1c3c86775077606b0a8394faf346ae5d281d9e /gcc | |
parent | 88ce7fbcc7e9a1ffcd684bab53d1f46017860c25 (diff) | |
download | gcc-fe385c219994f6d5c1ffe00bcaf5a62c3d18caaf.zip gcc-fe385c219994f6d5c1ffe00bcaf5a62c3d18caaf.tar.gz gcc-fe385c219994f6d5c1ffe00bcaf5a62c3d18caaf.tar.bz2 |
Don't set full_profile in auto-profile [PR113765]
auto-profile currently doesn't guarantee that it will set probabilities
on all edges because of zero basic block counts. Normally those edges
just have probabilities set by the preceding profile_estimate pass but
under -O0 profile_estimate pass doesn't run. The patch removes setting
of full_profile to true in auto-profile.
Tested on x86_64-pc-linux-gnu.
gcc/ChangeLog:
PR gcov-profile/113765
* auto-profile.cc (afdo_annotate_cfg): Don't set full_profile to true
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/auto-profile.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/auto-profile.cc b/gcc/auto-profile.cc index e5407d3..de59b94 100644 --- a/gcc/auto-profile.cc +++ b/gcc/auto-profile.cc @@ -1580,7 +1580,6 @@ afdo_annotate_cfg (const stmt_set &promoted_stmts) } update_max_bb_count (); profile_status_for_fn (cfun) = PROFILE_READ; - cfun->cfg->full_profile = true; if (flag_value_profile_transformations) { gimple_value_profile_transformations (); |