-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[XLA][HloDCE] Removal of unused outputs of fusions to consider multip…
…le users of the same shape index (aka output) Changes: * Replaces check of users vs number of outputs with checking if number of unique outputs used is smaller than number of outputs * Before this change, if same shape index (aka same output) is used multiple times, we might not end up removing any of the unused. * Before this change, if an output has multiple users, and it is the only one used, we might not remove all the unused fusion outputs (aka will leave around <number of users> outputs). PiperOrigin-RevId: 675754198
- Loading branch information
1 parent
3406c60
commit 2b1c609
Showing
2 changed files
with
136 additions
and
17 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