Commit 776f572
committed
[mlir][spirv] Enable validation of selection and phi tests
Some of the test cases are failing as they introduced unstructured
control flow. It would be good to catch this in MLIR, but I am
not sure it is currently feasible. We could enforce the conditional
branch to always be in `spirv.mlir.selection` however from my
perspective it will break our downstream project as we rely on
unstructured control flow, i.e., the control flow graph is structured
but we do not use `spirv.mlir.selection` and `spirv.mlir.loop` as
they do not currently support early exists. It seems that the support
for early exists is slowly coming into MLIR so we probably can revise
what is being enforced regarding control flow ops in the future.1 parent d130f40 commit 776f572
2 files changed
+71
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
| |||
295 | 300 | | |
296 | 301 | | |
297 | 302 | | |
| 303 | + | |
298 | 304 | | |
299 | | - | |
| 305 | + | |
300 | 306 | | |
301 | | - | |
302 | | - | |
| 307 | + | |
| 308 | + | |
303 | 309 | | |
304 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
305 | 320 | | |
306 | 321 | | |
| 322 | + | |
307 | 323 | | |
308 | 324 | | |
309 | 325 | | |
| |||
314 | 330 | | |
315 | 331 | | |
316 | 332 | | |
| 333 | + | |
317 | 334 | | |
318 | | - | |
| 335 | + | |
319 | 336 | | |
320 | | - | |
321 | | - | |
| 337 | + | |
| 338 | + | |
322 | 339 | | |
323 | | - | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
324 | 350 | | |
325 | 351 | | |
| 352 | + | |
326 | 353 | | |
327 | 354 | | |
328 | 355 | | |
| |||
333 | 360 | | |
334 | 361 | | |
335 | 362 | | |
| 363 | + | |
336 | 364 | | |
337 | | - | |
| 365 | + | |
338 | 366 | | |
339 | | - | |
340 | | - | |
| 367 | + | |
| 368 | + | |
341 | 369 | | |
342 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
343 | 376 | | |
344 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
345 | 383 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
| |||
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
| 144 | + | |
139 | 145 | | |
140 | | - | |
| 146 | + | |
141 | 147 | | |
142 | 148 | | |
143 | 149 | | |
144 | | - | |
145 | | - | |
| 150 | + | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
149 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
150 | 161 | | |
151 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
152 | 169 | | |
153 | 170 | | |
154 | 171 | | |
| |||
0 commit comments