Skip to content

[RELAY] Fix bug in MergeCompilerRegions pass#15211

Merged
Hzfengsy merged 1 commit into
apache:mainfrom
cccxinli:fix
Jul 11, 2023
Merged

[RELAY] Fix bug in MergeCompilerRegions pass#15211
Hzfengsy merged 1 commit into
apache:mainfrom
cccxinli:fix

Conversation

@cccxinli

@cccxinli cccxinli commented Jul 3, 2023

Copy link
Copy Markdown
Contributor

image

Suppose we have a graph as the image shows. In MergeCompilerRegions pass, R1 will merge to R4 because IfNode didn't propagate restriction regions to R3.
This PR supports the propagation of IfNode to avoid the invalid region merging.

@tvm-bot

tvm-bot commented Jul 3, 2023

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

@cccxinli

cccxinli commented Jul 6, 2023

Copy link
Copy Markdown
Contributor Author

cc @zhiics @shingjan

@cccxinli

Copy link
Copy Markdown
Contributor Author

Hello, @junrushao @Hzfengsy Please help to review this PR.

@Hzfengsy Hzfengsy merged commit e4a1209 into apache:main Jul 11, 2023
@Hzfengsy

Copy link
Copy Markdown
Member

Thanks @cccxinli for the enhancement

junrushao pushed a commit to junrushao/tvm that referenced this pull request Jul 24, 2023
junrushao pushed a commit to junrushao/tvm that referenced this pull request Jul 27, 2023
junrushao pushed a commit to junrushao/tvm that referenced this pull request Jul 30, 2023
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