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

[StableHLO] Port reduce canon patterns #14045

Merged
merged 2 commits into from
Jun 10, 2023
Merged

[StableHLO] Port reduce canon patterns #14045

merged 2 commits into from
Jun 10, 2023

Conversation

kuhar
Copy link
Member

@kuhar kuhar commented Jun 10, 2023

Turns out that linalg lowering depends on these.

The code is ported from equivalent folds and rewrite patterns in the mlir-hlo repo. The only notable difference is that this implementation fixes bugs with rewrite patterns performing op updates without going through the pattern rewriter. Also added a new test for the second noop case.

Fixes: #14042
Issue: #12678

Turns out that linalg lowering depends on these.

The code is ported from equivalent folds and rewrite patterns in the
mlir-hlo repo.

Fixes: iree-org#14042
Issue: iree-org#12678
@kuhar kuhar enabled auto-merge (squash) June 10, 2023 03:10
@kuhar kuhar merged commit 651630e into iree-org:main Jun 10, 2023
48 checks passed
nhasabni pushed a commit to plaidml/iree that referenced this pull request Aug 24, 2023
Turns out that linalg lowering depends on these.

The code is ported from equivalent folds and rewrite patterns in the
mlir-hlo repo. The only notable difference is that this implementation
fixes bugs with rewrite patterns performing op updates without going
through the pattern rewriter. Also added a new test for the second noop
case.

Fixes: iree-org#14042
Issue: iree-org#12678
stellaraccident pushed a commit that referenced this pull request Sep 24, 2023
* iree: 651630e [StableHLO] Port reduce canon patterns (#14045) (Sat
Jun 10 03:34:46 2023 +0000)
* xla: f920496e1 PR #3483: [ROCm] Added to create streams with different
priorities (Sat Jun 10 01:59:06 2023 -0700)
* jax: 1a7336d44 Remove the monkey patch in jax2tf by moving the
function to mlir.py (Fri Jun 9 23:47:20 2023 -0700)
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.

Rank-0 stablehlo.reduce is failing to lower via stablehlo input path
2 participants