Skip to content

[SIL Optimization] Fix a bug in isAliveAtBeginOfBlock function of ValueLifetimeAnalysis and generalize the utility #27892

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
Oct 26, 2019

Conversation

ravikandhadai
Copy link
Contributor

so that it can provide the critical edges as well, when it is invoked in DoNotModifyCFG mode.

of ValueLifetimeAnalysis and generalize the utility so that it
can provide the critical edges as well, when it is invoked in
DoNotModifyCFG mode.
@ravikandhadai ravikandhadai requested a review from atrick October 26, 2019 01:21
@ravikandhadai
Copy link
Contributor Author

@swift-ci Please test

Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

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

Awesome! Your comments are especially good.

FYI, many passes simply call splitCriticlEdges() before hand to avoid complexity. I recommend you do that too. The only thing keeping me from prohibiting critical edges in the SIL verifier is that I need to update a ton on SIL test cases first. Critical edges in mid-level IR are ridiculous, let alone high level IR like SIL.

@ravikandhadai ravikandhadai merged commit d074033 into swiftlang:master Oct 26, 2019
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