Hi, In afdo_propagate_edge, annotate edge from the connected basic_block if they have single predcessor/succcessor.
Tested with spec2017 intrate/intspeed and shows slight improvement. gcc/ChangeLog: 2025-07-21 Kugan Vivekanandarajah <kvivekana...@nvidia.com> * auto-profile.cc (afdo_propagate_edge): Propagate single succ or pred block's annotation. Is this OK? Thanks, Kugan
0001-AutoFDO-Propagate-single-succ-pred-block-s-annotatio.patch
Description: 0001-AutoFDO-Propagate-single-succ-pred-block-s-annotatio.patch