-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Transform] De-duplicate MatchCast nodes in EliminateCommonSubexpr (#…
…16599) * [Transform] De-duplicate MatchCast nodes in EliminateCommonSubexpr Update the `relax.transform.EliminateCommonSubexpr` pass to handle `R.match_cast` bindings, where the argument of the `R.match_cast` has also been de-duplicated. * Fix unit tests failures * Add unit test for avoiding leak of dataflow var * Track all legal de-duplications, in case the first is a DataflowVar * De-duplicate within an if/else, using bindings before the if/else
- Loading branch information
1 parent
e715814
commit 864fd5c
Showing
2 changed files
with
411 additions
and
190 deletions.
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
Oops, something went wrong.