Commit df9ed9c
authored
[mlir][transform] Fix failure in flattening already flattened linalg ops (llvm#86037)
The previous implementation was doing an early successful return on
`rank <= 1` without adding the original op to transform results. This
resulted in errors about number of returns. This patch fixes this by
adding the original op to results. Additionally, we first check if op is
elementwise and return a slienceable failure early if not.1 parent 733640d commit df9ed9c
File tree
2 files changed
+31
-5
lines changed- mlir
- lib/Dialect/Linalg/TransformOps
- test/Dialect/Linalg
2 files changed
+31
-5
lines changedLines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3269 | 3269 | | |
3270 | 3270 | | |
3271 | 3271 | | |
3272 | | - | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
3273 | 3280 | | |
| 3281 | + | |
3274 | 3282 | | |
3275 | 3283 | | |
3276 | 3284 | | |
3277 | | - | |
3278 | | - | |
3279 | | - | |
3280 | | - | |
| 3285 | + | |
3281 | 3286 | | |
3282 | 3287 | | |
3283 | 3288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
70 | 91 | | |
71 | 92 | | |
72 | 93 | | |
| |||
0 commit comments