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

Allow for nested passmanagers #6938

Closed
wants to merge 2 commits into from
Closed

Allow for nested passmanagers #6938

wants to merge 2 commits into from

Conversation

1ucian0
Copy link
Member

@1ucian0 1ucian0 commented Aug 24, 2021

Fixes #6830

@1ucian0 1ucian0 requested a review from a team as a code owner August 24, 2021 16:28
@@ -550,6 +551,90 @@ def test_fresh_initial_state(self):
],
)

def test_conditional_inside_loop(self):
"""Nestead flow control
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"""Nestead flow control
"""Nested flow control

if isinstance(pass_, BasePass):
dag = self._do_pass(pass_, dag, passset.options)
else:
running_passmanager = pass_._create_running_passmanager()
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this copying need to be done every time this PassManager is encountered? eg, if the outer PassManager is running this in a loop?

@1ucian0
Copy link
Member Author

1ucian0 commented Jan 14, 2022

closing it in favor of #6962

@1ucian0 1ucian0 closed this Jan 14, 2022
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.

Nested flow control for Passmanagers
2 participants