[Mlir-commits] [mlir] [mlir][vector] Add `SwapShapeCastOfTranspose` canonicalizer pattern (PR #100933)

Diego Caballero llvmlistbot at llvm.org
Thu Aug 1 11:30:24 PDT 2024


dcaballe wrote:

``` %0 = vector.transpose %vector, [3, 0, 1, 2]
       : vector<1x1x4x[4]xf32> to vector<[4]x1x1x4xf32>
%1 = vector.shape_cast %0 : vector<[4]x1x1x4xf32> to vector<[4]x4xf32>
```

Also wondering... isn't this `vector.shape_cast` introduced by the drop unit dimension pass itself?

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


More information about the Mlir-commits mailing list