Skip to content

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

Merged
tqchen merged 1 commit into
apache:mainfrom
MasterJH5574:tvm-dev/2023-01-30-analyzer-simplification-starts-c
Feb 3, 2023
Merged

[Fix][Arith] Analyzer simplification starts with canonical#13875
tqchen merged 1 commit into
apache:mainfrom
MasterJH5574:tvm-dev/2023-01-30-analyzer-simplification-starts-c

Conversation

@MasterJH5574

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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
MasterJH5574force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch 3 times, most recently from 87cc850 to e1de9c6CompareJanuary 31, 2023 01:47
@Hzfengsy

Copy link
Copy Markdown
Member

cc @wrongtest-intellif

@wrongtest-intellifwrongtest-intellif left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@MasterJH5574
MasterJH5574force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch 2 times, most recently from 4edd0cb to 23346f1CompareJanuary 31, 2023 15:54
Comment threadsrc/arith/canonical_simplify.cc Outdated
@MasterJH5574
MasterJH5574force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch 2 times, most recently from e0b19bb to 0b4d970CompareJanuary 31, 2023 18:20
@MasterJH5574

Copy link
Copy Markdown
ContributorAuthor

@tvm-bot rerun

@MasterJH5574
MasterJH5574force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch from 0b4d970 to 5b28e7eCompareJanuary 31, 2023 22:48
@tqchen

Copy link
Copy Markdown
Member

@tvm-bot rerun

@MasterJH5574
MasterJH5574force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch 5 times, most recently from 361feea to 0820465CompareFebruary 3, 2023 03:37
@MasterJH5574
MasterJH5574 marked this pull request as draft February 3, 2023 03:37
@MasterJH5574
MasterJH5574force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch from 0820465 to ce45b2aCompareFebruary 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
MasterJH5574force-pushed the tvm-dev/2023-01-30-analyzer-simplification-starts-c branch from ce45b2a to 4df3068CompareFebruary 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:mainFeb 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 freeto 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

@MasterJH5574@tvm-bot@Hzfengsy@tqchen@wrongtest-intellif