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

[Fix][Arith] Analyzer simplification starts with canonical #13875

Conversation

MasterJH5574
Copy link
Contributor

This PR updates the order of arithmetic analyzer simplification, by adding a stage of canonical simplification at the very beginning so that every simplification always starts with a canonical round. This is because the rewrite simplification may destroy some PrimExpr property that the canonical simplification can make use of. Therefore, adding the canonical one in the front can maximize the use of canonical simplification.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Jan 30, 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

@MasterJH5574 MasterJH5574 force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch 3 times, most recently from 87cc850 to e1de9c6 Compare January 31, 2023 01:47
@Hzfengsy
Copy link
Member

cc @wrongtest-intellif

Copy link
Contributor

@wrongtest-intellif wrongtest-intellif left a comment

Choose a reason for hiding this comment

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

LGTM!

@MasterJH5574 MasterJH5574 force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch 2 times, most recently from 4edd0cb to 23346f1 Compare January 31, 2023 15:54
@MasterJH5574 MasterJH5574 force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch 2 times, most recently from e0b19bb to 0b4d970 Compare January 31, 2023 18:20
@MasterJH5574
Copy link
Contributor Author

@tvm-bot rerun

@MasterJH5574 MasterJH5574 force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch from 0b4d970 to 5b28e7e Compare January 31, 2023 22:48
@tqchen
Copy link
Member

tqchen commented Feb 1, 2023

@tvm-bot rerun

@MasterJH5574 MasterJH5574 force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch 5 times, most recently from 361feea to 0820465 Compare February 3, 2023 03:37
@MasterJH5574 MasterJH5574 marked this pull request as draft February 3, 2023 03:37
@MasterJH5574 MasterJH5574 force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch from 0820465 to ce45b2a Compare February 3, 2023 03:39
This PR updates the order of arithmetic analyzer simplification, by
adding a stage of canonical simplification at the very beginning so
that every simplification always starts with a canonical round. This
is because the rewrite simplification may destroy some PrimExpr property
that the canonical simplification can make use of. Therefore, adding
the canonical one in the front can maximize the use of canonical
simplification.
@MasterJH5574 MasterJH5574 force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch from ce45b2a to 4df3068 Compare February 3, 2023 05:04
@tqchen tqchen marked this pull request as ready for review February 3, 2023 14:34
@tqchen tqchen merged commit fb2315a into apache:main Feb 3, 2023
junrushao pushed a commit to junrushao/tvm that referenced this pull request Feb 8, 2023
) (apache#404)

This PR updates the order of arithmetic analyzer simplification, by
adding a stage of canonical simplification at the very beginning so
that every simplification always starts with a canonical round. This
is because the rewrite simplification may destroy some PrimExpr property
that the canonical simplification can make use of. Therefore, adding
the canonical one in the front can maximize the use of canonical
simplification.
yelite pushed a commit to yelite/tvm that referenced this pull request Feb 17, 2023
) (apache#404)

This PR updates the order of arithmetic analyzer simplification, by
adding a stage of canonical simplification at the very beginning so
that every simplification always starts with a canonical round. This
is because the rewrite simplification may destroy some PrimExpr property
that the canonical simplification can make use of. Therefore, adding
the canonical one in the front can maximize the use of canonical
simplification.
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.

5 participants