Commit e122dcc
authored
[Global Opt] Prevent expanding reduction dims (iree-org#20290)
Prevents fusing reshapes with reduction ops. Fixes llama fp8 perf
regression due to interleaved parallel/reduction dimensions after llvm
integrate
(iree-org/llvm-project@813bbe0).
Adding `memref::populateResolveRankedShapedTypeResultDimsPatterns` is
unrelated, but I noticed some dynamic dimensions that weren't getting
simplified during this pass.
---------
Signed-off-by: Ian Wood <[email protected]>1 parent 5802af8 commit e122dcc
File tree
2 files changed
+22
-1
lines changed- compiler/src/iree/compiler/GlobalOptimization
- test
2 files changed
+22
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
1001 | 1002 | | |
1002 | 1003 | | |
1003 | 1004 | | |
| 1005 | + | |
1004 | 1006 | | |
1005 | 1007 | | |
1006 | 1008 | | |
| |||
1140 | 1142 | | |
1141 | 1143 | | |
1142 | 1144 | | |
1143 | | - | |
| 1145 | + | |
1144 | 1146 | | |
1145 | 1147 | | |
1146 | 1148 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
0 commit comments