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
[stdlib] Remove workaround for sort optimization #40081
Conversation
@swift-ci please test macOS platform |
@glessard can you re-run the tests again. There was a merge conflict that I just resolved. |
@swift-ci please test macOS platform |
@swift-ci please test Linux platform |
@natecook1000 @lorentey I'm not sure what to make of the passed tests: it seems like this should register as an ABI change. Thoughts? |
If we don't merge this, an alternative is to at least add the JIRA bug number: #40138 |
@HassanElDesouky The addition of the SR bug number was merged to main, and we have a merge conflict again. It's preferable to solve the conflict by rebasing rather than merging (it makes for a more understandable history.) Thanks! |
c2a14ce
to
4d375c9
Compare
@glessard Thank you for adding the SR bug number. I just rebased the branch and fixed the merge conflict. |
@swift-ci Please Build Toolchain Linux Platform |
Linux Toolchain (Ubuntu 16.04) Install command |
@glessard any update whether we're going to land this or not? |
@LucianoPAlmeida's note on ABI stability isn't resolved yet! Sadly I believe we'll need to preserve the Bool return value as these functions are ABI. (Otherwise we would introduce binary compatibility issues.) |
We could perhaps remove the workarounds without changing the ABI: simply return true, and add the |
@glessard Nice idea! I'm just traveling now so I'll do this solution once I get back. |
4d375c9
to
2ab0e07
Compare
Add discardableResult
2ab0e07
to
6316555
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I'll trigger a tests run.
@swift-ci please test |
@swift-ci please benchmark |
Performance (x86_64): -O
Code size: -O
Performance (x86_64): -Osize
Code size: -Osize
Performance (x86_64): -Onone
Code size: -swiftlibs
How to read the dataThe tables contain differences in performance which are larger than 8% and differences in code size which are larger than 1%.If you see any unexpected regressions, you should consider fixing the Noise: Sometimes the performance results (not code size!) contain false Hardware Overview
|
@swift-ci Please test Windows Platform |
Build failed |
The test failure was in a test related to the move-only work. Seems to fail for a few different PRs. |
#40806 should fix the test failure above. |
@swift-ci please test macOS platform |
Build failed |
@swift-ci please test macOS platform |
Tests passed 🎉 |
Thanks @HassanElDesouky for working on this! |
Remove workaround for sort optimization. Cherry picked from #40056.
Resolves SR-14750.
cc @lorentey, @glessard, @natecook1000