> Hi,
> 
> PR 123412 has been filed because since commit
> r16-3990-gad3fb999a1b568 (Jan Hubicka: Improve ipa-cp devirtualization
> costing), there is accidentally zero devirtualization bonus for
> functions which cannot be inlined.  This has resulted in
> g++.dg/ipa/devirt-2.C failing since it has been pushed because the
> required function is not cloned even with --param max-devirt-targets=1.
> 
> The intention was that we do get at least some small benefit boost and
> so this patch adds an addition of the indirect edge frequency once
> before the early continue statements.
> 
> The testcase g++.dg/ipa/devirt-2.C passes with this patch.  Bootstrap
> and full testsuite run on x86_64-linux is under way.  OK for master if
> it passes?
> 
> Thanks,
> 
> Martin
> 
> 
> gcc/ChangeLog:
> 
> 2026-01-14  Martin Jambor  <[email protected]>
> 
>       PR ipa/123412
>       * ipa-cp.cc (devirtualization_time_bonus): Do add the indirect
>       edge frequency at least once even for targets which cannot be
>       inlined.
OK,
thanks!
Honza

Reply via email to