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

[BYOC][bugfix] Handle empty tuples in annotation pass #7288

Merged
merged 2 commits into from
Jan 15, 2021

Conversation

slyubomirsky
Copy link
Contributor

I ran into a small issue when constructing a test case involving the AnnotateTarget pass and a function returning an empty tuple -- it was inserting a compiler_end annotation without a corresponding compiler_begin annotation. It turns out there was a check missing from InsertCompilerEndAndPropogateTarget (it checks for calls without args but not for empty tuples). This PR inserts a check and adds a test case.

Please review @zhiics @comaniac

Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

LGTM.
Also cc @codeislife99 @anijain2305 who recently worked on this pass as well.

@tqchen tqchen merged commit 4c5c086 into apache:main Jan 15, 2021
masahi pushed a commit to masahi/tvm that referenced this pull request Jan 18, 2021
TusharKanekiDey pushed a commit to TusharKanekiDey/tvm that referenced this pull request Jan 20, 2021
electriclilies pushed a commit to electriclilies/tvm that referenced this pull request Feb 18, 2021
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