Commit fbc1038
authored
This PR adds checks for ranked tensors in converter of reduce and gather
to prevent crash. Fixes llvm#131087.
1 parent d2c41fb commit fbc1038
File tree
2 files changed
+24
-7
lines changed- mlir
- lib/Conversion/TosaToLinalg
- test/Conversion/TosaToLinalg
2 files changed
+24
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1176 | 1176 | | |
1177 | 1177 | | |
1178 | 1178 | | |
1179 | | - | |
1180 | | - | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
1181 | 1184 | | |
1182 | 1185 | | |
1183 | 1186 | | |
| |||
2380 | 2383 | | |
2381 | 2384 | | |
2382 | 2385 | | |
2383 | | - | |
2384 | | - | |
2385 | | - | |
2386 | | - | |
2387 | | - | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
2388 | 2389 | | |
2389 | 2390 | | |
2390 | 2391 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
0 commit comments