Hi,

[PR ipa/123383]  shows in ICE speculative call sequence has speculative_id 256 
out of range with LTO.
This also shows up lot profile bootstrapping gcc.

Fix by checking lto_stmt_uid in get_next_speculative_id as done in other places 
too.


gcc/ChangeLog:

2026-01-04  Kugan Vivekanandarajah  <[email protected]>

        PR ipa/123383
        * cgraph.cc (cgraph_edge::get_next_speculative_id): Check
        lto_stmt_uid in get_next_speculative_id.

Is this OK?

Thanks,
Kugan






Attachment: 0001-PR-ipa-123383-ICE-speculative-call-sequence-has-spec.patch
Description: 0001-PR-ipa-123383-ICE-speculative-call-sequence-has-spec.patch

Reply via email to