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

[Substrait] Add pattern that eliminates yielding of input fields. #847

Conversation

ingomueller-net
Copy link
Collaborator

This PR depends on and, therefor, includes #846.

This PR adds a pattern to the emit deduplication pass that removes
values yielded from project that are field_references of top-level
input fields and expresses them through an emit op instead.

@ingomueller-net ingomueller-net force-pushed the substrait-emit-deduplication-project-yield-emit branch 2 times, most recently from 9758c77 to f12a311 Compare May 31, 2024 12:33

func.func private @f(si32) -> si1

substrait.plan version 0 : 42 : 1 {
Copy link
Member

Choose a reason for hiding this comment

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

Lets add descriptions for these to make it easy to read (the pattern name is close as quite descriptive)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@ingomueller-net ingomueller-net changed the title [Substrait] Add pattern that eleminates yielding of input fields. [Substrait] Add pattern that eliminates yielding of input fields. Jul 23, 2024
This PR adds a pattern to the emit deduplication pass that removes
values yielded from `project` that are `field_reference`s of top-level
input fields and expresses them through an `emit` op instead.

Signed-off-by: Ingo Müller <ingomueller@google.com>
@ingomueller-net ingomueller-net force-pushed the substrait-emit-deduplication-project-yield-emit branch from f12a311 to 7304bf3 Compare July 23, 2024 13:20
@ingomueller-net ingomueller-net merged commit 87ceb88 into iree-org:main Jul 23, 2024
3 checks passed
@ingomueller-net ingomueller-net deleted the substrait-emit-deduplication-project-yield-emit branch July 23, 2024 15:09
ingomueller-net added a commit to substrait-io/substrait-mlir-contrib that referenced this pull request Oct 15, 2024
…ee-org/iree-llvm-sandbox#847)

This PR adds a pattern to the emit deduplication pass that removes
values yielded from `project` that are `field_reference`s of top-level
input fields and expresses them through an `emit` op instead.

Signed-off-by: Ingo Müller <ingomueller@google.com>
ingomueller-net added a commit to substrait-io/substrait-mlir-contrib that referenced this pull request Oct 15, 2024
…ee-org/iree-llvm-sandbox#847)

This PR adds a pattern to the emit deduplication pass that removes
values yielded from `project` that are `field_reference`s of top-level
input fields and expresses them through an `emit` op instead.

Signed-off-by: Ingo Müller <ingomueller@google.com>
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