Commit e8e97aa
authored
[Linalg] Fix linalg.pack canonicalization priority issue (#160340)
The current canonicalization prioritizes unpack->pack folder over
dropping padding if not needed but that folder fails if there is padding
and hence blocks all canonicalizations. We now put the failures in the
if statement so that we can proceed if the unpack->pack folder
conditions are not met.
Signed-off-by: Nirvedh Meshram <[email protected]>1 parent 81cf8b8 commit e8e97aa
File tree
2 files changed
+9
-9
lines changed- mlir
- lib/Dialect/Linalg/IR
- test/Dialect/Linalg
2 files changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5583 | 5583 | | |
5584 | 5584 | | |
5585 | 5585 | | |
5586 | | - | |
5587 | | - | |
5588 | | - | |
5589 | | - | |
5590 | | - | |
5591 | | - | |
5592 | | - | |
5593 | | - | |
| 5586 | + | |
| 5587 | + | |
| 5588 | + | |
| 5589 | + | |
| 5590 | + | |
| 5591 | + | |
| 5592 | + | |
5594 | 5593 | | |
5595 | 5594 | | |
5596 | 5595 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1756 | 1756 | | |
1757 | 1757 | | |
1758 | 1758 | | |
| 1759 | + | |
1759 | 1760 | | |
1760 | 1761 | | |
1761 | 1762 | | |
1762 | | - | |
| 1763 | + | |
1763 | 1764 | | |
1764 | 1765 | | |
1765 | 1766 | | |
| |||
0 commit comments