https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124475

--- Comment #6 from tarun thammisetty <thammisettytarun at gmail dot com> ---
Following up on earlier comment — I've confirmed that final from
possible_polymorphic_call_targets() is computed but literally never read in
ipa_devirt(). The change would be ~15 lines, guarded by final == true &&
targets.length() == 1, and is a strict subset of what's currently speculated —
so no existing behavior changes.

Happy to work on a patch if someone can confirm the direction and flag any
invariants to watch out for.

Reply via email to