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

[Relax] Prevent to generate duplicate func in dispatch_sort_scan #16904

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

Hzfengsy
Copy link
Member

The current pass would generate multiple PrimFuncs even if they are structural equal, which is because bb.update_func will not check whether the new func is already in the list.

This PR apply dlight at the end of the dispatching instead of after every function.

cc @yongwww @vinx13

@github-actions github-actions bot requested review from vinx13 and yongwww April 18, 2024 07:03
@Hzfengsy Hzfengsy force-pushed the fix_dispatch_sort_duplicate_func branch 2 times, most recently from aaa7b45 to e8a380c Compare April 19, 2024 05:42
The current pass would generate multiple PrimFuncs even if they are
structural equal, which is because `bb.update_func` will not check
whether the new func is already in the list.

This PR apply dlight at the end of the dispatching instead of after
every function.
@Hzfengsy Hzfengsy force-pushed the fix_dispatch_sort_duplicate_func branch from e8a380c to f386132 Compare April 19, 2024 07:41
@tqchen tqchen merged commit 2978427 into apache:main Apr 19, 2024
19 checks passed
@Hzfengsy Hzfengsy deleted the fix_dispatch_sort_duplicate_func branch May 10, 2024 06:47
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