Re: [PATCH] [IPA] Apply computed profile scaling

Jan Hubička <[email protected]>
Newsgroups gmane.comp.gcc.patches
Message-ID <CAJf+ejcTbSPSNZoS8TnYXhjUuRs0hFwpOHfvN8_f+kf5DaFdSQ@mail.gmail.com>
On Thu, Aug 20, 2026 at 1:57 AM Kugan Vivekanandarajah <
[email protected]> wrote:

> cgraph_node::scale_profile_to computed an adjusted scale but never
> applied it, leaving callgraph edges stale after IPA-CP clone
> redistribution and causing edge/BB count verification failures.
>
> The stale counts triggered this ICE during AutoFDO LTO compilation:
>
>   internal compiler error: verify_cgraph_node failed
>   #0  internal_error(char const*, ...)
>       .../gcc/diagnostic-global-context.cc:787
>   #1  cgraph_node::verify_node()
>       .../gcc/cgraph.cc:4510
>   #2  symtab_node::verify()
>       .../gcc/symtab.cc:1377
>   #3  optimize_inline_calls(tree_node*)
>       .../gcc/tree-inline.cc:5679
>   #4  inline_transform(cgraph_node*)
>       .../gcc/ipa-inline-transform.cc:871
>   #5  execute_one_ipa_transform_pass
>       .../gcc/passes.cc:2327
>   #6  execute_all_ipa_transforms(bool)
>       .../gcc/passes.cc:2390
>   #7  cgraph_node::expand()
>       .../gcc/cgraphunit.cc:1867
>   #8  cgraph_node::expand()
>       .../gcc/cgraphunit.cc:1827
>   #9  expand_all_functions
>       .../gcc/cgraphunit.cc:2057
>   #10 symbol_table::compile()
>       .../gcc/cgraphunit.cc:2435
>   #11 lto_main()
>       .../gcc/lto/lto.cc:718
>
> gcc/ChangeLog:
>
>         * cgraph.cc (cgraph_node::scale_profile_to): Apply the computed
> scale.
>
OK.
thanks

Honza

>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.