Skip to content

[6.0] Don't delete allocations in DCE #73858

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
May 24, 2024

Conversation

meg-gupta
Copy link
Contributor

@meg-gupta meg-gupta commented May 23, 2024

Explanation: Don't delete allocations in DCE.
DCE was deleting an allocation with only destroy_value users. This isn't correct when the deinit can have a side effect. This should be handled in DeadObjectElimination which does additional analysis on deinit to determine if a dead allocation can be eliminated.
Scope: Narrow. Disabling an optimization edge case.
Issue: #73768
Original PR: #73852
Risk: Low
Testing: Added a test
Reviewer: atrick

@meg-gupta meg-gupta requested a review from a team as a code owner May 23, 2024 20:01
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta enabled auto-merge May 23, 2024 21:53
@meg-gupta meg-gupta merged commit e9d2261 into swiftlang:release/6.0 May 24, 2024
5 checks passed
@meg-gupta meg-gupta deleted the fixdcecp branch July 10, 2024 00:22
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