Skip to content

[NFC] PredictableMemOpts: refactor to allow extension #76996

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
Oct 15, 2024

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Oct 13, 2024

Needed to add handling for mark_dependence instructions.

Extracting NFC changes to ensure that behavior of this mandatory pass does not accidentally change. It is closely coupled with several diagnostic passes.

Fully encapsulate ownership fixup so we can extend it.

PredictableMemOpt: remove non-OSSA support

PredictableMemOpt only runs with OSSA. The recent refactoring did not
preserve non-OSSA conditions because it adds complexity. This commit
just makes it official.

In the near future, this pass will be replaced by an OSSA-only pass
anyway, so this brings us one small step closer to that.

Fully encapsulate ownership fixup so we can extend it.
PredictableMemOpt only runs with OSSA. The recent refactoring did not
preserve non-OSSA conditions because it adds complexity. This commit
just makes it official.

In the near future, this pass will be replaced by an OSSA-only pass
anyway, so this brings us one small step closer to that.
@atrick atrick requested a review from eeckstein as a code owner October 13, 2024 06:22
@atrick
Copy link
Contributor Author

atrick commented Oct 13, 2024

@swift-ci test

@atrick
Copy link
Contributor Author

atrick commented Oct 13, 2024

PR testing appears to be broken:

FAIL: Testing swift-docc failed
[1185/1732] Testing SwiftDocCTests.RenderNodeCodableTests/testDoesNotEncodeVariantOverridesIfEmpty
error: Exited with unexpected signal code 11

@atrick
Copy link
Contributor Author

atrick commented Oct 13, 2024

@swift-ci test

No source change here, only reorganization that was deferred to avoid
making diffs hard to read.
@atrick
Copy link
Contributor Author

atrick commented Oct 13, 2024

@swift-ci test

@atrick
Copy link
Contributor Author

atrick commented Oct 14, 2024

@swift-ci smoke test macosx

@atrick atrick merged commit e767d7e into swiftlang:main Oct 15, 2024
4 of 5 checks passed
@atrick atrick deleted the predmem_refactor branch October 15, 2024 02:07
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