[Mlir-commits] [mlir] [MLIR][Vector] Add unroll pattern for vector.shape_cast (PR #164010)

James Newling llvmlistbot at llvm.org
Fri Oct 31 13:20:54 PDT 2025


================
@@ -496,3 +496,61 @@ func.func @elementwise_4D_to_2D(%v1: vector<2x2x2x2xf32>, %v2: vector<2x2x2x2xf3
 // CHECK-COUNT-4:   arith.addf %{{.*}}, %{{.*}} : vector<2x2xf32>
 // CHECK-NOT: arith.addf
 // CHECK: return
+
----------------
newling wrote:

May be worth having a case like (2,3,1,2) -> (3,2,2) (even if the lit testing is minimal, just to check nothing goes wrong)

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


More information about the Mlir-commits mailing list