Skip to content

[sil] Add a run of ownership model eliminator in the lowering pass pi… #27866

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

gottesmm
Copy link
Contributor

…peline to ensure we eliminate ownership even if a bisecting counter has disabled the normal ome run.

Just ran into this while trying to bisect.

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

…peline to ensure we eliminate ownership even if a bisecting counter has disabled the normal ome run.

I also had to fix up one test and eliminated a test that did not really make
sense in the first place to test with ossa. (Specifically,
copy_value_destroy_value is a test I added when adding copy_value,
destroy_value, it really doesn't make sense since we will just lower it to
retain, release before we hit IRGen).
@gottesmm gottesmm force-pushed the pr-501bcdba55c3d80c1684a9c3786e1b2b77b9f65b branch from 752c65d to 451252d Compare October 25, 2019 01:28
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

2 similar comments
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm gottesmm requested a review from atrick October 25, 2019 01:31
@gottesmm
Copy link
Contributor Author

weird lldb error. I am going to actually do a full test of this.

@gottesmm
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 752c65dbb98e3cb84d210f7cba6edf4682746e7a

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 752c65dbb98e3cb84d210f7cba6edf4682746e7a

@gottesmm
Copy link
Contributor Author

@swift-ci test linux platform

@gottesmm
Copy link
Contributor Author

More weird lldbness.

@gottesmm
Copy link
Contributor Author

All of the tests pass on os x. Just failed in lldb.

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test os x platform

@gottesmm
Copy link
Contributor Author

again the lldb test failure. The lldb test failure was fixed in:

swiftlang/llvm-project#24

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test os x platform

@gottesmm gottesmm merged commit c13db79 into swiftlang:master Oct 25, 2019
@gottesmm gottesmm deleted the pr-501bcdba55c3d80c1684a9c3786e1b2b77b9f65b branch October 25, 2019 21:43
@gottesmm gottesmm restored the pr-501bcdba55c3d80c1684a9c3786e1b2b77b9f65b branch October 25, 2019 21:43
@gottesmm gottesmm deleted the pr-501bcdba55c3d80c1684a9c3786e1b2b77b9f65b branch October 25, 2019 21:43
Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

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

Makes sense.

@gottesmm Also, this pass should be in Mandatory since it's required for codegen.

@gottesmm
Copy link
Contributor Author

@atrick SGTM

1 similar comment
@gottesmm
Copy link
Contributor Author

@atrick SGTM

@gottesmm
Copy link
Contributor Author

@atrick #27916

dan-zheng added a commit to dan-zheng/swift that referenced this pull request Nov 5, 2019
dan-zheng added a commit that referenced this pull request Nov 5, 2019
* Disable expected SILOptimizer test failures.

These tests fail because `-enable-ownership-stripping-after-serialization`
has been disabled for libswiftCore on tensorflow branch due to SR-11336.

TF-799 tracks re-enabling these tests.

* Fix libInMemoryFrontend unittests.

* Remove test/IRGen/copy_value_destroy_value.sil.

The test was deleted upstream in #27866.
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