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

[GPU] Replace the skip condition for TileLargeTensors to be more general #20088

Closed
wants to merge 1 commit into from

Conversation

nirvedhmeshram
Copy link
Contributor

This PR turns TileLargeTensors pass off for lianlg.generic with empty body (except a linalg.yeild) along with exisitng cases in which we dont want it (which also meet the new condition). The reason this is and should be needed is that some patterns such as reshape fusion will generalize to a generic op, see here for example consider the fuseWithReshapeByExpansion upstream, it will convert a transpose (or any expandable linalg op for that matter) to a generic op. We dont want to use this pass for such carefully introduced ops.
https://github.com/llvm/llvm-project/blob/main/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp#L930-L933

@nirvedhmeshram
Copy link
Contributor Author

We are going to take a different route and retain the named ops.

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.

1 participant