-
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.
[Bugfix][Transform] Keep private non-primitive functions in FuseTIR (#…
…16565) Prior to this commit, private non-primitive relax functions would be discarded by `FuseTIR`. If any calls to these functions exist, the resulting `IRModule` would be ill-formed. This commit updates `FuseTIR` so that it only applies updates to functions with `attr::kPrimitive`, and calls into those functions. To retain backwards compatibility, `DeadCodeElimination` is applied as a post-processing step.
- Loading branch information
1 parent
2b813ec
commit 274c368
Showing
3 changed files
with
187 additions
and
113 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
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