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

[Arith] Fix handling of overlapping predicates #15555

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

vinx13
Copy link
Member

@vinx13 vinx13 commented Aug 15, 2023

When the lower bound predicate is present, TryFuseIters will rewrite an expression to IterMarkWithOffset, where the iter mark (structured form) has minimum value of zero. During rewriting, when the subexpression matches a previous rewritten result (IterMarkWithOffset), previously it doesn't correctly add the offset to the result IterMarkWithOffset, and causes inconsistency between the flattened form and the structured (normal) form.

cc @wrongtest-intellif @spectrometerHBH

When the lower bound predicate is present, `TryFuseIters` will rewrite
an expression to `IterMarkWithOffset`, where the iter mark (structured
form) has minimum value of zero. During rewriting, when the subexpression
matches a previous rewritten result (`IterMarkWithOffset`), previously
it doesn't correctly add the offset to the result `IterMarkWithOffset`,
and causes inconsistency between the flattened form and the structured
(normal) form.
@tvm-bot
Copy link
Collaborator

tvm-bot commented Aug 15, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@quic-sanirudh quic-sanirudh merged commit 760c030 into apache:main Aug 16, 2023
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.

4 participants