[Mlir-commits] [mlir] [mlir][vector] Additional transpose folding (PR #138347)

Andrzej WarzyƄski llvmlistbot at llvm.org
Wed May 14 02:21:39 PDT 2025


================
@@ -247,3 +247,36 @@ func.func @negative_shape_cast_transpose(%arg : vector<6xi8>) -> vector<2x3xi8>
   %1 = vector.transpose %0, [1, 0] : vector<3x2xi8> to vector<2x3xi8>
   return %1 : vector<2x3xi8>
 }
+
+// -----
+
+// Test of transpose folding
----------------
banach-space wrote:

I've landed https://github.com/llvm/llvm-project/pull/139699, so you will have to rebase. Sorry about the noise :(

Btw, before merging my PR I updated the block comments to match the format proposed here. I hope that that's OK.

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


More information about the Mlir-commits mailing list