forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Dispatch] Two fixes for CollapseDimensionsPass (iree-org#19598)
iree-org#19113 uncovered some problems with the logic in this pass. Fixes two problems: 1. If a consumer cannot be collapsed, producers can only collapse dimensions not touched by the consumer 2. When updating which consumer loops can be collapsed, the reassociation of the producer must be taken into account since its possible they are not all contiguous (e.g. a transpose on an input). This is the same logic as in `updateFromConsumer` --------- Signed-off-by: Ian Wood <ianwood2024@u.northwestern.edu>
- Loading branch information
Showing
2 changed files
with
182 additions
and
73 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