I would like to again ping the patch posted in https://gcc.gnu.org/pipermail/gcc-patches/2025-November/700704.html
Add hierarchical discriminator support for loop unrolling.
Assigns multiplicity and copyid discriminators to distinguish unrolled
iterations.
gcc/ChangeLog:
* cfgloopmanip.cc (duplicate_loop_body_to_header_edge): Assign
hierarchical discriminators for loop unrolling.
* cfgloopmanip.h (DLTHE_RECORD_HIERARCHICAL_DISCRIMINATOR): New flag.
* tree-ssa-loop-ivcanon.cc (try_unroll_loop_completely): Pass flag
to enable hierarchical discriminator assignment.
(try_peel_loop): Likewise.
gcc/testsuite/ChangeLog:
* gcc.dg/hierarchical-discriminator-unroll.c: New test.
Bootstrapped and regression tested on aarch64-linux-gnu with no new
regressions. Is this OK?
Thanks,
Kugan
0004-Autofdo-V4-Add-hierarchical-discriminator-for-loop-u.patch
Description: 0004-Autofdo-V4-Add-hierarchical-discriminator-for-loop-u.patch
