Skip to content

[MLIR] control-flow-sink: Allow to configure shouldMoveIntoRegion #466

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
Feb 10, 2025

Conversation

mgehre-amd
Copy link
Collaborator

@mgehre-amd mgehre-amd commented Feb 10, 2025

Many places expect on linalg.index ops directly nested within linalg.generic, so it seems easier to just restrict the control-flow-sink pass from moving linalg.index ops.

To achieve that, I expose the shouldMoveIntoRegion option on the pass while keeping the default behavior the same.

Copy link

@TinaAMD TinaAMD left a comment

Choose a reason for hiding this comment

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

LGTM

@mgehre-amd mgehre-amd merged commit 8bf67e1 into feature/fused-ops Feb 10, 2025
5 checks passed
@mgehre-amd mgehre-amd deleted the matthias.cfs_config branch February 10, 2025 15:26
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