Skip to content

Fix EscapeAnalysis verification assert at unreachable blocks #30414

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
Mar 15, 2020
Merged

Fix EscapeAnalysis verification assert at unreachable blocks #30414

merged 1 commit into from
Mar 15, 2020

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Mar 14, 2020

If EscapeAnalysis verification runs on unreachable code, it asserts
with "Missing escape connection graph mapping" because the connection
graph builder only runs on reachable blocks.

Add a ReachableBlocks utility and use it during verification.

Fixes rdar://problem/60373501 EscapeAnalysis crashes with CFG with
unreachable blocks

@atrick atrick requested a review from eeckstein March 14, 2020 05:01
@atrick
Copy link
Contributor Author

atrick commented Mar 14, 2020

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - cd67d0c64f5cd8b05d4290bb100ef29f6af8690a

@atrick
Copy link
Contributor Author

atrick commented Mar 14, 2020

@swift-ci smoke test linux

Copy link
Contributor

@gottesmm gottesmm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few small nits. LGTM otherwise.

If EscapeAnalysis verification runs on unreachable code, it asserts
with "Missing escape connection graph mapping" because the connection
graph builder only runs on reachable blocks.

Add a ReachableBlocks utility and use it during verification.

Fixes <rdar://problem/60373501> EscapeAnalysis crashes with CFG with
unreachable blocks
@atrick
Copy link
Contributor Author

atrick commented Mar 14, 2020

@swift-ci smoke test

@atrick atrick merged commit ca686a5 into swiftlang:master Mar 15, 2020
@atrick atrick deleted the fix-escape-unreachable branch March 15, 2020 00:53
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