Skip to content

[DCE] Don't complete lifetimes of erased values. #78306

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 4 commits into from
Dec 20, 2024

Conversation

nate-chandler
Copy link
Contributor

@nate-chandler nate-chandler commented Dec 19, 2024

DCE may enqueue a value for lifetime completion and later on erase the instruction that defines that value. When erasing an instruction, erase each of its results from the collection of values to complete.

rdar://141560546

Rather than reusing the source of the dyn_cast.
Set CallsChanged when appropriate and increment NumDeletedInsts.
DCE may enqueue a value for lifetime completion and later on erase the
instruction that defines that value.  When erasing an instruction, erase
each of its results from the collection of values to complete.

rdar://141560546
@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 apple silicon benchmark

@nate-chandler nate-chandler marked this pull request as ready for review December 20, 2024 04:30
Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nate-chandler nate-chandler merged commit 6e1cd3a into swiftlang:main Dec 20, 2024
8 checks passed
@nate-chandler nate-chandler deleted the rdar141560546 branch December 20, 2024 14: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