Skip to content

[CopyProp] Don't extend lifetime over end_access. #60792

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

nate-chandler
Copy link
Contributor

If there is a consuming use of the value inside an access scope, the lifetime should not be extended over the end_access instruction.

@nate-chandler nate-chandler requested a review from atrick August 26, 2022 04:13
@nate-chandler nate-chandler force-pushed the canonicalize_ossa_lifetime/access_scope_ends branch 10 times, most recently from c559402 to 70323ff Compare August 26, 2022 18:10
If there is a consuming use of the value inside an access scope, the
lifetime should not be extended over the end_access instruction.
@nate-chandler nate-chandler force-pushed the canonicalize_ossa_lifetime/access_scope_ends branch from 70323ff to 477461b Compare August 26, 2022 18:14
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.

Thanks!

@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler
Copy link
Contributor Author

@swift-ci please test source compatibility

@nate-chandler
Copy link
Contributor Author

@swift-ci please benchmark

@nate-chandler
Copy link
Contributor Author

@swift-ci please test source compatibility

@nate-chandler nate-chandler merged commit cd04e9e into swiftlang:main Aug 26, 2022
@nate-chandler nate-chandler deleted the canonicalize_ossa_lifetime/access_scope_ends branch August 26, 2022 22: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