Commit d5802c3
authored
[mlir] Optimize const values AffineMap::compose (llvm#141005)
The original implementation will create two intermediate AffineMap in
the context, calling this compose function with different values
multiple times will occupy a lot of memory.
To improve the performance, we can call the AffineExpr::replace
directly, so we don't need to store all combinations of values in the
context.1 parent e9dbf31 commit d5802c3
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
584 | 583 | | |
585 | | - | |
586 | | - | |
587 | | - | |
| 584 | + | |
| 585 | + | |
588 | 586 | | |
589 | | - | |
590 | | - | |
591 | | - | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
592 | 590 | | |
593 | 591 | | |
594 | 592 | | |
| |||
0 commit comments