Commit f7a5264
authored
[mlir][vector] Add support for yielding loop bounds in
In some cases, loop bounds (lower, upper and step) of `scf.for` can come
locally from the parent warp op the `scf.for`. Current logic will not
yield the loop bounds in the new warp op generated during lowering
causing sinked `scf.for` to have non dominating use.
In this PR, we have added logic to yield loop bounds by default (treat
them as other operands of `scf.for`) which fixes this bug.scf.for distribution. (llvm#163443)1 parent 404099d commit f7a5264
File tree
2 files changed
+54
-7
lines changed- mlir
- lib/Dialect/Vector/Transforms
- test/Dialect/Vector
2 files changed
+54
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2032 | 2032 | | |
2033 | 2033 | | |
2034 | 2034 | | |
2035 | | - | |
2036 | | - | |
2037 | | - | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
2038 | 2039 | | |
2039 | 2040 | | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
2040 | 2048 | | |
2041 | 2049 | | |
2042 | 2050 | | |
| |||
2072 | 2080 | | |
2073 | 2081 | | |
2074 | 2082 | | |
| 2083 | + | |
2075 | 2084 | | |
| 2085 | + | |
2076 | 2086 | | |
2077 | 2087 | | |
2078 | 2088 | | |
2079 | | - | |
| 2089 | + | |
2080 | 2090 | | |
2081 | 2091 | | |
2082 | 2092 | | |
2083 | 2093 | | |
2084 | 2094 | | |
2085 | 2095 | | |
2086 | | - | |
2087 | | - | |
2088 | | - | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
2089 | 2101 | | |
2090 | 2102 | | |
2091 | 2103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
476 | 511 | | |
477 | 512 | | |
478 | 513 | | |
| |||
0 commit comments