-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Enable ClosureLifetimeFixup's capture copy elimination for copyable types as well. #74795
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
@swift-ci apple silicon benchmark |
@swift-ci test |
|
Based on top of #74768 |
@swift-ci test windows platform |
@swift-ci build toolchain |
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.
Please fix this comment
For noncopyable address-only captures...
We should enable this optimization so it is actually tested. It is high risk because this code has been extremely bug prone, and we're suddenly enabling it on all address captures. So I wouldn't do it on a release branch.
The Onone performance is awesome, and this "optimization" totally makes sense at Onone if we're willing to give up debugging the captured value after the closure runs! |
…ixup rdar://130026658
…avoid exclusivity issues
@swift-ci smoke test |
@swift-ci smoke test |
Smoke testing now since full testing passed previously |
rdar://130026658