Skip to content

Fix OSSA Outliner for scoped guaranteed values #40002

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 5 commits into from
Nov 17, 2021

Conversation

meg-gupta
Copy link
Contributor

While outlining, the new uses of scoped guaranteed values maybe beyond the lifetime ends. For this reason use the new api makeGuaranteedValueAvailable which is built on top of OwnershipLifetimeExtender to create new guaranteed values that are correctly scoped and use as arg for the outlined call.

This ends up creating copy_value + borrow_value that are additional to the non-OSSA outliner. When CopyPropagation with lexical lifetimes are enabled, these additional instructions will be removed to get performance parity with the non-OSSA Outliner.

@meg-gupta
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

swift-ci commented Nov 1, 2021

Build failed
Swift Test Linux Platform
Git Sha - 2b0e101

@meg-gupta
Copy link
Contributor Author

@swift-ci test Linux platform

@meg-gupta
Copy link
Contributor Author

@swift-ci test and merge

@meg-gupta
Copy link
Contributor Author

@swift-ci clean test linux platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 2b0e101

@meg-gupta
Copy link
Contributor Author

@swift-ci clean test linux platform

@meg-gupta
Copy link
Contributor Author

@swift-ci test macOS platform

@meg-gupta
Copy link
Contributor Author

@swift-ci test windows platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 2b0e101

@meg-gupta
Copy link
Contributor Author

@swift-ci test macOS platform

@meg-gupta
Copy link
Contributor Author

@swift-ci test windows platform

@meg-gupta meg-gupta merged commit 39f74bb into swiftlang:main Nov 17, 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