[Mlir-commits] [mlir] [mlir][vector] Generalize the canonicalization of transpose(broadcast(x)) (PR #153056)
Min-Yih Hsu
llvmlistbot at llvm.org
Mon Aug 11 10:45:55 PDT 2025
================
@@ -91,58 +91,118 @@ func.func @broadcast_transpose_final_group(%arg0 : vector<4x7x1x1xi8>) -> vector
// -----
-// CHECK-LABEL: negative_broadcast_transpose_square
-// CHECK-SAME: %[[ARG:.*]]:
-// CHECK: %[[BCT:.*]] = vector.broadcast %[[ARG]]
-// CHECK: %[[TRP:.*]] = vector.transpose %[[BCT]], [1, 0]
-// CHECK: return %[[TRP]] : vector<4x4xi8>
-func.func @negative_broadcast_transpose_square(%arg0 : vector<4x1xi8>) -> vector<4x4xi8> {
----------------
mshockwave wrote:
turned out many of these negative test cases are now able to be simplified.
https://github.com/llvm/llvm-project/pull/153056
More information about the Mlir-commits
mailing list