Skip to content

[5.5] CSE: While optimizing lazy property getters, don't inline non-ossa to ossa function #38231

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 6, 2021

Conversation

meg-gupta
Copy link
Contributor

Fixes rdar://79781904

Cherry-pick of #38184

• Explanation: Fixes a bug in optimizing lazy property getters in CSE. Lazy property getters are CSE'ed by inlining their function body. There was no check to skip inlining a non-ossa function into an ossa function which is illegal.

• Scope of Issue: Can lead to crashes or miscompilations

• Risk: Low. The fix is low risk because it is just avoiding the illegal CSE of lazy property getters.

• Reviewed By: Erik Eckstein

• Testing: Added unit tests

…ssa to ossa function

Fixes rdar://79781904

Cherry-pick of swiftlang#38184

• Explanation: Fixes a bug in optimizing lazy property getters in CSE. Lazy property getters are CSE'ed by inlining their function body. There was no check to skip inlining a non-ossa function into an ossa function which is illegal.

• Scope of Issue: Can lead to crashes or miscompilations

• Risk: Low. The fix is low risk because it is just avoiding the illegal CSE of lazy property getters.

• Reviewed By: Erik Eckstein

• Testing: Added unit tests
@meg-gupta meg-gupta requested a review from a team as a code owner July 2, 2021 17:34
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta merged commit b8b2fc4 into swiftlang:release/5.5 Jul 6, 2021
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