Skip to content

Fix edgecase in AllocBoxToStack handling of local apply #33376

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 2 commits into from
Aug 10, 2020

Conversation

meg-gupta
Copy link
Contributor

AllocBoxToStack analyzes alloc_boxes passed into a chain of applies and converts the alloc_box to alloc_box along with specializing the eligible functions when it is safe to do so from - #31907

This PR fixes an edge case in the construction of AppliesToSpecialize when multiple alloc_boxes are passed to n common function.

Also added a flag to disable the analysis of apply in AllocBoxToStack.

Fixes rdar://66542551

@meg-gupta
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

swift-ci commented Aug 8, 2020

Build failed
Swift Test OS X Platform
Git Sha - 3d39e2c164f9998f961492cd8a0166372c5803b1

@meg-gupta meg-gupta force-pushed the fixallocboxtostack branch from 3d39e2c to 4d4af13 Compare August 8, 2020 05:37
@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test

@meg-gupta
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

swift-ci commented Aug 8, 2020

Build failed
Swift Test OS X Platform
Git Sha - 3d39e2c164f9998f961492cd8a0166372c5803b1

@swift-ci
Copy link
Contributor

swift-ci commented Aug 8, 2020

Build failed
Swift Test Linux Platform
Git Sha - 3d39e2c164f9998f961492cd8a0166372c5803b1

@meg-gupta
Copy link
Contributor Author

@swift-ci test windows platform

@meg-gupta
Copy link
Contributor Author

@swift-ci Please Test Source Compatibility

@meg-gupta meg-gupta merged commit bfeafb6 into swiftlang:master Aug 10, 2020
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