]> git.ipfire.org Git - thirdparty/gcc.git/commit
Annotate empty bb with all debug_stmt with location of phi in the single_succ.
authorhongtao.liu <hongtao.liu@intel.com>
Wed, 22 Jan 2025 06:44:01 +0000 (07:44 +0100)
committerliuhongt <hongtao.liu@intel.com>
Tue, 29 Apr 2025 08:45:20 +0000 (01:45 -0700)
commit59e853308bd797f91df15fd0fa65a3b5ce2cf4a2
tree13542145a1d562e779520253a50130432f4d7959
parent3cf97980aaab6971ae179625a5e1188255dcf925
Annotate empty bb with all debug_stmt with location of phi in the single_succ.

For an empty BB with all debug_stmt, it will be ignored by
afdo_set_bb_count, but it can be set with count of single successors
PHIs which edge from the BB.

gcc/ChangeLog:

PR gcov-profile/118581
* auto-profile.cc (autofdo_source_profile::get_count_info):
Overload the function with parameter gimple location instead
of stmt.
(afdo_set_bb_count): For !has_annotated BB, Check single
successors PHIs corresponding to the block and use those
count.
gcc/auto-profile.cc