]> git.ipfire.org Git - thirdparty/gcc.git/commit
Don't set full_profile in auto-profile [PR113765]
authorEugene Rozenfeld <erozen@microsoft.com>
Tue, 26 Mar 2024 23:28:08 +0000 (16:28 -0700)
committerEugene Rozenfeld <erozen@microsoft.com>
Thu, 4 Apr 2024 00:28:30 +0000 (17:28 -0700)
commitfe385c219994f6d5c1ffe00bcaf5a62c3d18caaf
tree1e1c3c86775077606b0a8394faf346ae5d281d9e
parent88ce7fbcc7e9a1ffcd684bab53d1f46017860c25
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
gcc/auto-profile.cc