Skip to content

SIL: Don't DFE functions referenced from KeyPath patterns. #9194

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
May 2, 2017

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented May 2, 2017

Explanation: Adds awareness of KeyPath instructions to the DeadFunctionElimination pass, so that accessor functions referenced by key path literals do not get optimized away.

Scope: Fixes use of key paths in optimized builds

Issue: rdar://problem/31776015

Risk: Low

Testing: Swift CI

@jckarter
Copy link
Contributor Author

jckarter commented May 2, 2017

@swift-ci Please test

@jckarter jckarter requested a review from eeckstein May 2, 2017 15:09
@jckarter
Copy link
Contributor Author

jckarter commented May 2, 2017

Here's the 4.0 branch version, @eeckstein.

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

@jckarter jckarter merged commit 87df594 into swiftlang:swift-4.0-branch May 2, 2017
@jckarter jckarter deleted the keypath-dfe-4.0 branch May 2, 2017 18:21
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