Skip to content

[6.2][SILOptimizer]: slow OSSA lifetime canonicalization mitigation #82402

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

Conversation

jamieQ
Copy link
Contributor

@jamieQ jamieQ commented Jun 22, 2025

OSSA lifetime canonicalization can take a very long time in certain
cases in which there are large basic blocks. to mitigate this, add logic
to skip walking the liveness boundary for extending liveness to dead
ends when there aren't any dead ends in the function.

Updates `DeadEndBlocks` with a new `isEmpty` method and cache to
determine if there are any dead-end blocks in a given function.

(cherry picked from commit 1f3f830)
@jamieQ jamieQ requested a review from a team as a code owner June 22, 2025 23:18
@jamieQ
Copy link
Contributor Author

jamieQ commented Jun 22, 2025

@swift-ci please test

@nate-chandler nate-chandler enabled auto-merge June 23, 2025 02:50
@nate-chandler nate-chandler merged commit 99f3547 into swiftlang:release/6.2 Jun 23, 2025
5 checks passed
@jamieQ jamieQ deleted the 6-2-copy-prop-ossa-dead-ends-build-time-fix branch June 23, 2025 11:38
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.

3 participants