Artem Gindinson 7be77495ca
[mlir][Math][SPIRV] fix math.round conversion for unit-dim vectors (#182067)
In SPIR-V, unit dimensional vectors, e.g. `vector<1xf32` are legalized
as scalars (vectors are 2, 3, 4, and possibly 8 and 16 dimensional).
This PR fixes the `math.round` conversion pattern to legalize these
vectors during conversion.

Co-authored-by: Ege Beysel <beysel@roofline.ai>

---------

Signed-off-by: Artem Gindinson <gindinson@roofline.ai>
Co-authored-by: Ege Beysel <beysel@roofline.ai>
2026-02-18 12:36:06 -05:00
..