Skip to content

[NFC] Refactor PredictableMemoryOptimization #76714

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
Sep 26, 2024

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Sep 26, 2024

In preparation for adding mark_dependence support. Required to support addressors (unsafeAddress) in places other than UnsafePointer.pointee.

This is a literal refactor. It formally separates the load optimizations and dead allocation optimizations, which are actually different algorithms. This obvious refactor will allow each optimization, which is fundamentally different to be naturally extended to handle other kinds of uses, like mark_dependence.

I made no attempt to update the code style. That's not the goal of this PR.

In preparation for adding mark_dependence support.
Required to support addressors (unsafeAddress) in places
other than UnsafePointer.pointee.
@atrick
Copy link
Contributor Author

atrick commented Sep 26, 2024

@swift-ci test

@atrick
Copy link
Contributor Author

atrick commented Sep 26, 2024

A validation test running in the simulator appears to have timed out

@atrick
Copy link
Contributor Author

atrick commented Sep 26, 2024

@swift-ci smoke test

@atrick atrick merged commit 106e05f into swiftlang:main Sep 26, 2024
4 of 5 checks passed
@atrick atrick deleted the refactor_predmemopt branch September 26, 2024 22:00
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.

1 participant