Skip to content

Pick fixes for Unions & tbaa.struct #8375

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

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

fhahn
Copy link

@fhahn fhahn commented Mar 11, 2024

No description provided.

fhahn added 4 commits March 11, 2024 21:50
Adds extra test coverage for TBAA generation for copies of structs with
union members.

(cherry-picked from 6f29941)
Add test showing that tbaa.struct is generated when using TSan with
relaxed-aliasing.

(cherry-picked from 167b90d)
…vm#84386)

Without this bail out, we may generate fields with null nodes as tags
are generated by using getTypeInfo which has the same bail out.

PR: llvm#84386

(cherry-picked from 83789ff)
…lvm#84370)

At the moment,distinct fields for each union member are generated. When
copying a union, we don't know which union member is active, so there's
no benefit from recording the different fields. It can result in
converting tbaa.struct fields to incorrect tbaa nodes when extracting
fields.

PR: llvm#84370

(cherry-picked from 5feaef6)
@fhahn
Copy link
Author

fhahn commented Mar 11, 2024

@swift-ci please test

@fhahn
Copy link
Author

fhahn commented Mar 11, 2024

@swift-ci please test LLVM

@fhahn
Copy link
Author

fhahn commented Mar 12, 2024

@swift-ci please test

@fhahn
Copy link
Author

fhahn commented Mar 12, 2024

@swift-ci please smoke test

@fhahn
Copy link
Author

fhahn commented Mar 12, 2024

@swift-ci please smoke test macOS

@fhahn
Copy link
Author

fhahn commented Mar 12, 2024

@swift-ci Please clean smoke test macOS platform

@fhahn
Copy link
Author

fhahn commented Mar 12, 2024

@swift-ci please test

@fhahn fhahn merged commit d1625da into swiftlang:stable/20230725 Mar 13, 2024
@fhahn fhahn deleted the tbaa-struct-union branch March 13, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant