Skip to content

[DCE] Destroys of live values are live. #64980

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 2 commits into from
Apr 7, 2023

Conversation

nate-chandler
Copy link
Contributor

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.

@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@meg-gupta
Copy link
Contributor

LGTM. Thanks!

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 force-pushed the dce/live-destroy_value branch from ee8dbc6 to 38cbc6f Compare April 6, 2023 20:44
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler nate-chandler merged commit eb62b55 into swiftlang:main Apr 7, 2023
@nate-chandler nate-chandler deleted the dce/live-destroy_value branch April 7, 2023 02:20
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