https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71672
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Eugene Rozenfeld <ero...@gcc.gnu.org>: https://gcc.gnu.org/g:285aa6895d479bed8e72ad363290846645b6faa0 commit r12-2711-g285aa6895d479bed8e72ad363290846645b6faa0 Author: Eugene Rozenfeld <ero...@microsoft.com> Date: Mon Aug 2 18:36:09 2021 -0700 Fix indirect call inlining with AutoFDO The histogram value for indirect calls was incorrectly set up. That is fixed now. With this change the tree-prof tests checking indirect call inlining with AutoFDO in gcc.dg and g++.dg are passing. Resolves: PR gcov-profile/71672 - inlining indirect calls does not work with autofdo gcc/ChangeLog: PR gcov-profile/71672 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.