| Issue |
114528
|
| Summary |
[mlir][affine] Affine super vectorize should guard against empty virtual-vector-size option
|
| Labels |
mlir
|
| Assignees |
|
| Reporter |
oowekyala
|
When calling `mlir-opt --affine-super-vectorize`, nothing happens, because the default for `virtual-vector-size` is empty, and all current vectorization patterns require vector rank 1, 2 or 3 (whereas empty vector sizes means rank 0). When calling additionally with option `vectorize-reductions`, then an error is printed (`Vectorizing reductions is supported only for 1-D vectors.`), because then the vector rank must be 1.
I think the pass should check if the rank is zero and fail, informing the user that the virtual-vector-size option must be specified.
Optionally, we could add a default for the option, eg 8.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs