I suggest you ...

Support devirtualization at least some of virtual calls

Support full devirtualization for types declared in an anonymous namespace, in local scope or when used the final specifier. Also, warnings similar GCC -Wsuggest-final-types and -Wsuggest-final-methods.

http://hubicka.blogspot.ca/2014/08/devirtualization-in-c-part-5-asking.html

16 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Arkady Shapkin shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...
  • KindDragon commented  ·   ·  Flag as inappropriate

    GCC 5.1 improve devirtualization for C++ significantly
    > The devirtualization pass was significantly improved by adding better support for speculative devirtualization and dynamic type detection. About 50% of virtual calls in Firefox are now speculatively devirtualized during link-time optimization.
    https://gcc.gnu.org/gcc-5/changes.html

Feedback and Knowledge Base