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

[REFACTOR][IR] alpha_equal to structural_equal #5161

Merged
merged 3 commits into from
Mar 29, 2020

Conversation

zhiics
Copy link
Member

@zhiics zhiics commented Mar 28, 2020

#5159

This PR finishes the first three items of #5159:

  • Replace alpha_equal/type_alaph_equal and assert_alpha_equal from with structural_equal

  • Replace all AlphaEqual(lhs, rhs) in C++ with StructuralEqual()(lhs, rhs)

  • Remove analysis/alpha_equal.cc

A few bugs are also fixed in this PR.

A followup PR needs to remove the AttrEqual and AlphaEqualHandler from C++.

@zhiics
Copy link
Member Author

zhiics commented Mar 28, 2020

@tqchen tqchen changed the title [Refactor][ir] alpha_equal to structural_equal [REFACTOR][IR] alpha_equal to structural_equal Mar 28, 2020
@tqchen tqchen self-assigned this Mar 28, 2020
@zhiics zhiics force-pushed the structrual_equal branch 2 times, most recently from 7084d5c to 0795a86 Compare March 28, 2020 19:14
Copy link
Contributor

@MarisaKirisame MarisaKirisame left a comment

Choose a reason for hiding this comment

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

LGTM

@tqchen
Copy link
Member

tqchen commented Mar 28, 2020

@zhiics please rebase and check the testcases

@zhiics
Copy link
Member Author

zhiics commented Mar 28, 2020

@tqchen sure. Seems a few tests are broken. I will look into after base.

@zhiics zhiics force-pushed the structrual_equal branch 2 times, most recently from 5762186 to de1ced1 Compare March 29, 2020 02:20
@tqchen
Copy link
Member

tqchen commented Mar 29, 2020

@zhiics can you comment a bit about what test-cases hit the incomplete type handling? That part might need some extra thoughts, I can merge this PR for now and we follow up on the particular item. cc @jroesch @MarisaKirisame

@tqchen tqchen merged commit 919ae88 into apache:master Mar 29, 2020
@tqchen
Copy link
Member

tqchen commented Mar 29, 2020

I see, seems it makes sense now then. Thanks @zhiics !

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.

3 participants