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

[AutoScheduler] Fix layout rewrite for iterator with extent=1 #7279

Merged
merged 1 commit into from
Jan 14, 2021

Conversation

merrymercy
Copy link
Member

@merrymercy merrymercy commented Jan 14, 2021

This is a bug in the layout rewrite. When the extent of an iterator is one, it will be simplified and we will get segment fault when we access iter->extent. This PR adds a check to handle this case.

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

@merrymercy merrymercy merged commit 7f4aa24 into apache:main Jan 14, 2021
@merrymercy merrymercy deleted the pr-fix-layout-rewrite branch January 14, 2021 14:20
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.

2 participants