[Mlir-commits] [mlir] [mlir][vector] Support for extracting 1-element vectors in VectorExtractOpConversion (PR #107549)

Diego Caballero llvmlistbot at llvm.org
Mon Sep 9 18:17:41 PDT 2024


dcaballe wrote:

Hey, thanks for the fix!

> vector.extract %1[0]: vector<1xf32> from vector<2xf32>

This looks weird to me. I would expect a rank change as a result of the extract so we should express that as:

```
vector.extract %1[0]: f32 from vector<2xf32>
```
or

```
vector.extract %1[0]: vector<f32> from vector<2xf32>
```

https://github.com/llvm/llvm-project/pull/107549


More information about the Mlir-commits mailing list