Skip to content
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

Use new dataflow framework for generators #69295

Merged
merged 6 commits into from
Mar 1, 2020

Conversation

ecstatic-morse
Copy link
Contributor

@ecstatic-morse ecstatic-morse commented Feb 19, 2020

#65672 introduced a new dataflow framework that can handle arbitrarily complex transfer functions as well as ones expressed as a series of gen/kill operations. This PR ports the analyses used to implement generators to the new framework so that we can remove the old one. See #68241 for a prior example of this. The new framework has some superficial API changes, but this shouldn't alter the generator passes in any way.

r? @tmandry

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 19, 2020
@bors

This comment has been minimized.

@ecstatic-morse
Copy link
Contributor Author

Ping @tmandry

@bors

This comment has been minimized.

Copy link
Member

@tmandry tmandry left a comment

Choose a reason for hiding this comment

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

Sorry for the delay on my end! It's been a wild couple of weeks.

Looks good, r=me after comment.

EDIT: The new framework looks really nice. :)

src/librustc_mir/transform/generator.rs Outdated Show resolved Hide resolved
@ecstatic-morse
Copy link
Contributor Author

@bors r=tmandry

@bors
Copy link
Contributor

bors commented Feb 29, 2020

📌 Commit dd69017f3f9a0e8e76ac6cfbfe8029250bf87270 has been approved by tmandry

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 29, 2020
@rust-highfive

This comment has been minimized.

Reverse post-order requires an allocation.
@ecstatic-morse
Copy link
Contributor Author

Ugh, that was a bit loose.

@bors r=tmandry

@bors
Copy link
Contributor

bors commented Feb 29, 2020

📌 Commit 21cd1fe has been approved by tmandry

@bors
Copy link
Contributor

bors commented Mar 1, 2020

⌛ Testing commit 21cd1fe with merge ee50590...

@bors
Copy link
Contributor

bors commented Mar 1, 2020

☀️ Test successful - checks-azure
Approved by: tmandry
Pushing ee50590 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 1, 2020
@bors bors merged commit ee50590 into rust-lang:master Mar 1, 2020
@ecstatic-morse ecstatic-morse deleted the unified-dataflow-generators branch October 6, 2020 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants