Skip to content

6.0: [DCE] Insts that define lexical values seem useful #74167

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

Explanation: Fixed DCE not to delete instructions that define lexical values.

Lexical values, such as those corresponding to source-level lets, cannot be deleted as dead, even when they have no uses. Previously, DCE could delete such values if they had no non-destroy users. Here this is fixed by preventing instructions which introduce lexical values from being deleted.
Scope: Bug fix.
Issue: rdar://129299803
Original PR: #74152
Risk: Low.
Testing: Added SIL test case.
Reviewer: Meghana Gupta ( @meg-gupta )

Don't delete as dead instructions that define lexical values such as
`move_value [lexical]`.

rdar://129299803
@nate-chandler nate-chandler requested a review from a team as a code owner June 6, 2024 03:39
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler nate-chandler requested a review from tbkka June 6, 2024 03:40
@nate-chandler nate-chandler merged commit 169b75f into swiftlang:release/6.0 Jun 6, 2024
@nate-chandler nate-chandler deleted the cherrypick/release/6.0/rdar129299803 branch June 6, 2024 14:36
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