Skip to content

Make Builtin.getCurrentExecutor conservatively not readnone #36770

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

Closed

Conversation

rjmccall
Copy link
Contributor

@rjmccall rjmccall commented Apr 6, 2021

Fixes a miscompile where the hop_to_executor optimizer would remove hop_to_executor before a getCurrentExecutor.

Fixes a miscompile where the hop_to_executor optimizer would
remove hop_to_executor before a getCurrentExecutor.
@rjmccall rjmccall requested a review from eeckstein April 6, 2021 06:08
@rjmccall
Copy link
Contributor Author

rjmccall commented Apr 6, 2021

@swift-ci Please test

Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

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

LGTM

In future we could make it more conservative by handling this builtin in the optimization.

@swift-ci
Copy link
Contributor

swift-ci commented Apr 6, 2021

Build failed
Swift Test Linux Platform
Git Sha - fc43127

@swift-ci
Copy link
Contributor

swift-ci commented Apr 6, 2021

Build failed
Swift Test OS X Platform
Git Sha - fc43127

@ktoso
Copy link
Contributor

ktoso commented Apr 6, 2021

Failure should be fixed by #36776.

Please re-run tests once that's merged.

Sorry for the trouble.

@ktoso
Copy link
Contributor

ktoso commented Apr 6, 2021

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Apr 6, 2021

Build failed
Swift Test Linux Platform
Git Sha - fc43127

@swift-ci
Copy link
Contributor

swift-ci commented Apr 6, 2021

Build failed
Swift Test OS X Platform
Git Sha - fc43127

@rjmccall
Copy link
Contributor Author

rjmccall commented Apr 6, 2021

I'm just going to roll this into #36751.

@rjmccall rjmccall closed this Apr 6, 2021
@rjmccall rjmccall deleted the getCurrentExecutor-is-a-read branch April 6, 2021 19:33
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.

4 participants