Skip to content

[NFC] SILCloner rewrite stage 2: "threading" cloners. #20136

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 30, 2018
Merged

[NFC] SILCloner rewrite stage 2: "threading" cloners. #20136

merged 1 commit into from
Oct 30, 2018

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Oct 29, 2018

Rewrite the SILCLoners used in SimplifyCFG. For convenience, there is
now simply a BasicBlockCloner and a SILFunctionCloner. It's pretty
obvious what they do and almost impossible to use incorrectly.

This is worthwhile on its own just to make the usage clear, but the
real reason is that after this cleanup, it will be possible to remove
many extraneous calls to global critical edge splitting related to
cloning.

Rewrite the SILCLoners used in SimplifyCFG. For convenience, there is
now simply a BasicBlockCloner and a SILFunctionCloner. It's pretty
obvious what they do and almost impossible to use incorrectly.

This is worthwhile on its own just to make the usage clear, but the
real reason is that after this cleanup, it will be possible to remove
many extraneous calls to global critical edge splitting related to
cloning.
@atrick
Copy link
Contributor Author

atrick commented Oct 29, 2018

@swift-ci test.

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 903a982

@atrick atrick changed the title SILCloner rewrite stage 2: "threading" cloners. [NFC] SILCloner rewrite stage 2: "threading" cloners. Oct 30, 2018
@atrick
Copy link
Contributor Author

atrick commented Oct 30, 2018

@swift-ci test OS X platform.

Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

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

lgtm

@atrick atrick merged commit 063bbfc into swiftlang:master Oct 30, 2018
@atrick atrick deleted the silcloner-cleanup branch July 31, 2019 00:39
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