-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[DestroyAddrHoisting] Skip init_enum_data_addrs. #81952
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
0b2c05c
to
0df5b51
Compare
moveonlywrapper_to_copyable_box changes the type so it's a type cast not an identity cast.
The new function stripAccessAndAccessStorageCasts is analogous to the existing function stripAccessAndIdentityCasts but differs in that the latter uses isAccessStorageIdentityCast whereas the new function uses isAccessStorageCast.
A destroy of an `init_enum_data_addr` is not equivalent to a destroy of the whole enum's address. Treat such destroys just like destroys of `struct_element_addr`s are treated: by bailing out. rdar://152431332
0df5b51
to
c41fd47
Compare
@swift-ci please test |
@swift-ci please test source compatibility |
@swift-ci please apple silicon benchmark |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@swift-ci please smoke test macos platform |
A destroy of an
init_enum_data_addr
is not equivalent to a destroy of the whole enum's address. Treat such destroys just like destroys ofstruct_element_addr
s are treated: by bailing out.rdar://152431332