Skip to content

5.9: [DCE] Destroys of live values are live. #64981

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

@nate-chandler nate-chandler commented Apr 6, 2023

Cherry-pick of #64980

As is done for end_borrows, add a dependency from a destroy_values to its operand so that it is not eliminated if its operand isn't.

rdar://107734495

As is done for `end_borrow`s, add a dependency from a `destroy_value`s
to its operand so that it is not eliminated if its operand isn't.
@nate-chandler nate-chandler requested a review from a team as a code owner April 6, 2023 20:50
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler nate-chandler merged commit a17e8ca into swiftlang:release/5.9 Apr 7, 2023
@nate-chandler nate-chandler deleted the cherrypick/release/5.9/dce/live-destroy_value branch April 7, 2023 03:31
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants