Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devirtualize more based on whole program analysis #97812

Merged
merged 1 commit into from
Feb 1, 2024

Commits on Feb 1, 2024

  1. Devirtualize more based on whole program analysis

    Whole program view lets us figure out whether a virtual method has been overriden by another method, or whether it can be considered `final`. Add a pass to collect this information and pass it to codegen,
    
    It kicks in less often than I expected (for linear enough hierarchies or not-too-much-derived types we could already do this with guarded devirtualization or type sealing), but I can still a bit over 100 method bodies affected by this in the Stage1 app.
    MichalStrehovsky committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    375d1c0 View commit details
    Browse the repository at this point in the history