-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change elementwise op fusion heuristics. (#8723)
Current fusion heuristics seems to have degraded over time. With the ops moved to different dialects, and changes to op semantics, the control functions used seem to not really capture the original intent. This PR revisits the control functions used for elementwise operation fusion. Fusion of elementwise operations with reshapes by expansion. This change also pulls in the fusion be collapse to clean up some additional reshapes and replaces some of the one-off patterns that were intending to achieve a similar effect. See #8724 and discourse.llvm.org/t/rfc-next-iteration-of-fusion-of-elementwise-operations/59955/4 for discussion of impact of this change.
- Loading branch information
1 parent
24baca2
commit 61b2bb2
Showing
6 changed files
with
209 additions
and
153 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
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.