Skip to content

Verify OSSA address phis. #32992

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
Jul 20, 2020
Merged

Verify OSSA address phis. #32992

merged 1 commit into from
Jul 20, 2020

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Jul 20, 2020

Verify that address phis are prohibited in all OSSA passes.

Eventually they should be prohibited in all passes. This at least
allows preserving access markers in OSSA passes.

Verify that address phis are prohibited in all OSSA passes.

Eventually they should be prohibited in all passes. This at least
allows preserving access markers in OSSA passes.
@atrick atrick requested a review from gottesmm July 20, 2020 00:48
@atrick
Copy link
Contributor Author

atrick commented Jul 20, 2020

@swift-ci test

@atrick
Copy link
Contributor Author

atrick commented Jul 20, 2020

@swift-ci test source compatibility

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 9fda3f5

@atrick
Copy link
Contributor Author

atrick commented Jul 20, 2020

Test failure: emit-forward-modules.swift

swiftmodule '/Volumes/swift-ci/jenkins/workspace/swift-PR-osx/branch-master/buildbot_incremental/swift-macosx-x86_64/test-iphonesimulator-i386/ModuleInterface/Output/emit-forward-modules.swift.tmp/Foo.swiftmodule/i386-apple-ios-simulator.swiftmodule' is not a forwarding module!

@atrick
Copy link
Contributor Author

atrick commented Jul 20, 2020

@swift-ci smoke test macOS

@atrick
Copy link
Contributor Author

atrick commented Jul 20, 2020

@gottesmm @meg-gupta OSSA passes should be able to rely on the presence of begin/end_access markers. I believe SemanticARCOpts already does. We should make sure AccessMarkerElimination always runs after OwnershipElimination. As part of migrating tests to OSSA, we should also add the access markers. Eventually, AccessMarkerElimination can go away entirely. When access markers present it's easier to analyze memory access, and also allows fixing some of the pass ordering problems today where access enforcement selection can only be done very early.

@atrick atrick merged commit 0ee53f9 into swiftlang:master Jul 20, 2020
@atrick atrick deleted the prohibit-phi-args branch July 20, 2020 06:32
@gottesmm
Copy link
Contributor

LGTM. Thanks!

Copy link
Contributor

@gottesmm gottesmm left a comment

Choose a reason for hiding this comment

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

Nice LGTM!

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.

3 participants