Skip to content

[DAH] Bail on pointer use if ignoring barriers. #76114

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 1 commit into from
Aug 28, 2024

Conversation

nate-chandler
Copy link
Contributor

Unknown uses of raw pointers should not result in bailing out when an address is lexical--the destroy of the address will already not be hoisted over any instructions which may access pointers. If the address is not lexical however (such as any address when lexical lifetimes are disabled), that rationale does not apply, so unknown uses of raw pointers must cause hoisting to bail.

rdar://133969821

Unknown uses of raw pointers should not result in bailing out when an
address is lexical--the destroy of the address will already not be
hoisted over any instructions which may access pointers.  If the address
is not lexical however (such as any address when lexical lifetimes are
disabled), that rationale does not apply, so unknown uses of raw
pointers must cause hoisting to bail.

rdar://133969821
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler
Copy link
Contributor Author

@swift-ci please apple silicon benchmark

@nate-chandler
Copy link
Contributor Author

@swift-ci please test source compatibility

@nate-chandler nate-chandler requested a review from atrick August 27, 2024 23:21
Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

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

LGTM

@nate-chandler nate-chandler marked this pull request as ready for review August 28, 2024 03:38
@nate-chandler nate-chandler merged commit c56a313 into swiftlang:main Aug 28, 2024
5 of 8 checks passed
@nate-chandler nate-chandler deleted the rdar133969821_2 branch August 28, 2024 13:59
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.

2 participants