forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Vulkan][Codegen] Spir-V codegen, correct labels/blocks in WhileNode. (…
…apache#8013) Previously, the WhileNode assumes that evaluating the loop condition will not introduce any additional labels. If this assumption is violated, such as for a WhileNode whose condition is an if/else statement, then the OpLoopMerge instruction appears in the wrong block. The unittest added exercises this code path, but doesn't yet trigger a failure. Once spvValidate is enabled for all vulkan codegen, then this unit test will catch the failure mode. Co-authored-by: Eric Lunderberg <elunderberg@octoml.ai>
- Loading branch information
1 parent
573dbe1
commit 7b49744
Showing
2 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters