Skip to content

[4.2][pmo] Eliminate incomplete support for promoting enums. #17598

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

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Jun 28, 2018

Explanation: This removes code from PMO that was never implemented correctly a long time ago (2013-2014). It was disguised by DI and PMO both relying on the same code and us getting lucky due to SILGen. Now that we are running PMO in the perf pipeline, we hit this problem.

Scope: This could cause us to miscompile.

SR Issue: rdar://41161408

Risk: Low. After this change, we just bail on the misbehaving cases, rather than try to process them so it should be safe.

Testing: Ran compiler tests and added the crasher example as a runtime test.

Reviewer: @atrick


This was never implemented correctly way back in 2013-2014. It was originally
added I believe so we could DI checks, but the promotion part was never added.

Given that DI is now completely split from PMO, we can just turn this off and if
necessary add it back on master "properly".

rdar://41161408
(cherry picked from commit b9f69cb)

This was never implemented correctly way back in 2013-2014. It was originally
added I believe so we could DI checks, but the promotion part was never added.

Given that DI is now completely split from PMO, we can just turn this off and if
necessary add it back on master "properly".

rdar://41161408
(cherry picked from commit b9f69cb)
@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm gottesmm changed the title [pmo] Eliminate incomplete support for promoting enums. [4.2][pmo] Eliminate incomplete support for promoting enums. Jun 28, 2018
@gottesmm gottesmm requested a review from atrick June 28, 2018 20:24
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.

Reviewed for 4.2.

@gottesmm
Copy link
Contributor Author

@swift-ci nominate

@gottesmm
Copy link
Contributor Author

Approved by Ted via email.

@gottesmm gottesmm merged commit b3408e8 into swiftlang:swift-4.2-branch Jun 30, 2018
@gottesmm gottesmm deleted the swift-4.2-branch-fix-pmo-bug branch June 30, 2018 05:41
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.

2 participants