Skip to content

[6.2] Disable function signature optimization on functions with lifetime dependencies #82963

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 14, 2025

Conversation

meg-gupta
Copy link
Contributor

Explanation: If a function has lifetime dependencies, disable FSO's dead param optimization. Dead params maybe dependency sources and we should not delete them. It is also problematic to dead code params that are not dependency sources, since lifetime dependent sources are stored as indices and deleting dead parameters will require recomputation of these indices.

Scope: Functions with lifetime dependencies enabled under an experimental flag

Risk: Low. Disabling an illegal edge case in an optimization

Radar: TBD

Main PR: #82951

Reviewer: @atrick

Testing: CI testing

…pendencies

If a function has lifetime dependencies, disable FSO's dead param optimization. Dead params maybe dependency sources and we should not delete them. It is also problematic to dead code params that are not dependency sources, since lifetime dependent sources are stored as indices and deleting dead parameters will require recomputation of these indices.
@meg-gupta meg-gupta requested a review from tbkka July 10, 2025 18:38
@meg-gupta meg-gupta requested a review from a team as a code owner July 10, 2025 18:38
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta
Copy link
Contributor Author

@swift-ci test windows platform

@meg-gupta
Copy link
Contributor Author

@swift-ci test windows platform

@meg-gupta meg-gupta enabled auto-merge July 11, 2025 17:18
@meg-gupta
Copy link
Contributor Author

@swift-ci test windows platform

@meg-gupta meg-gupta merged commit cfe2a70 into swiftlang:release/6.2 Jul 14, 2025
5 checks passed
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