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

[Arc] Dedup: generalize to CallOpInterface #5161

Merged
merged 2 commits into from
May 10, 2023

Conversation

maerhart
Copy link
Member

@maerhart maerhart commented May 9, 2023

Currently, the Dedup pass only considers StateOp as call operations to arcs because this was the only legal way to call an arc until recently. Because there is no additional check that no other operation calls an arc, the pass fails because it potentially dedups an arc that is called by a CallOp which is not updated accordingly. This generalizes to operations that implement the CallOpMutableInterface. It is assumed that all operations that can call an arc, implement this interface.

@maerhart maerhart added the Arc Involving the `arc` dialect label May 9, 2023
Currently, the Dedup pass only considers StateOp as call operations to arcs because this was the only legal way to call an arc until recently. Because there is no additional check that no other operation calls an arc, the pass fails because it potentially dedups an arc that is called by a CallOp which is not updated accordingly. This generalizes to operations that implement the CallOpMutableInterface. It is assumed that all operations that can call an arc, implement this interface.
@maerhart maerhart force-pushed the dev/maerhart/arc-generalize-dedup branch from 4e57c83 to 6954446 Compare May 10, 2023 06:36
@maerhart maerhart changed the base branch from main to dev/maerhart/bump-llvm May 10, 2023 06:37
Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

Very cool! 😎

Base automatically changed from dev/maerhart/bump-llvm to main May 10, 2023 16:58
@maerhart maerhart merged commit 38fa02c into main May 10, 2023
@maerhart maerhart deleted the dev/maerhart/arc-generalize-dedup branch May 10, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arc Involving the `arc` dialect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants