Skip to content

AccessPath: Look past class casts when finding the reference root. #34159

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 3 commits into from
Oct 21, 2020

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Oct 2, 2020

For class storage AccessedStorage is now close to what some passes use
for RC identity, but it still does not look past wrapping references
in an Optional.

@atrick atrick force-pushed the opt-ref-root branch 6 times, most recently from 5d63774 to 67a6350 Compare October 19, 2020 18:09
@atrick atrick requested a review from eeckstein October 19, 2020 18:14
@atrick
Copy link
Contributor Author

atrick commented Oct 19, 2020

@swift-ci 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

@@ -1201,6 +1201,10 @@ SILBasicBlock::iterator removeBeginAccess(BeginAccessInst *beginAccess);

namespace swift {

/// Return true if \p value is a cast that preserves the identity and
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: .. if \p svi is a...

For class storage AccessedStorage is now close to what some passes use
for RC identity, but it still does not look past wrapping references
in an Optional.
@atrick
Copy link
Contributor Author

atrick commented Oct 20, 2020

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit 971932d into swiftlang:main Oct 21, 2020
@atrick atrick deleted the opt-ref-root branch November 9, 2020 17:13
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.

3 participants