Skip to content

[embedded] Specialize superclasses in VTableSpecializer as part of MandatoryPerformanceOptimizations #72371

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

Conversation

kubamracek
Copy link
Contributor

We have some cases left where we fail to specialize a vtable, e.g. when it's a base class of a specialized class that's otherwise unused. When MandatoryPerformanceOptimizations specializes a vtable, let's immediate trigger specialization of all superclasses, too. This resolves a crash that the attached testcases triggers:

Assertion failed: (vtable), function emitEmbeddedVTable, file GenMeta.cpp, line 5113.

rdar://124581262

@kubamracek kubamracek added the embedded Embedded Swift label Mar 16, 2024
@kubamracek
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
embedded Embedded Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants