Skip to content

Restore operator '+' family for UnsafePointer. #3719

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 24, 2016
Merged

Restore operator '+' family for UnsafePointer. #3719

merged 1 commit into from
Jul 24, 2016

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Jul 24, 2016

The reverts part of my previous patch. Removing the operators is too much of a
performance penalty to take. The difference is that the Strideable operators are
not transparent.

I still need to remove the UnsafeRawPointer operators, so -Onone performance
will be bad in some cases until this is fixed:
rdar://problem/27513184 [perf] Strideable operators are not transparent. This is a huge -Onone performance penalty.

The reverts part of my previous patch. Removing the operators is too much of a
performance penalty to take. The difference is that the Strideable operators are
not transparent.

I still need to remove the UnsafeRawPointer operators, so -Onone performance
will be bad in some cases until this is fixed:
<rdar://problem/27513184> [perf] Strideable operators are not transparent. This is a huge -Onone performance penalty.
@atrick
Copy link
Contributor Author

atrick commented Jul 24, 2016

@swift-ci Please smoke test and merge.

@atrick
Copy link
Contributor Author

atrick commented Jul 24, 2016

This failed on swap_refcnt. I think it's safe to merge now.

@atrick atrick merged commit 72b8813 into swiftlang:master Jul 24, 2016
@atrick atrick deleted the unsafeptr-operator branch September 21, 2016 20:57
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