On Mon, Jul 22, 2024 at 06:12:43PM +0200, Jan Hubicka wrote: > Hi, > this testcase shows another poblem with missing comparators for metadata > in ICF. With value ranges available to loop optimizations during early > opts we can estimate number of iterations based on guarding condition that > can be split away by the fnsplit pass. This patch disables ICF when > number of iteraitons does not match. > > Bootstrapped/regtesed x86_64-linux, comitted. Will backport it to gcc14. > > gcc/ChangeLog: > > PR ipa/115277 > * ipa-icf-gimple.cc (func_checker::compare_loops):
CL entry missing here. Marek