[Mlir-commits] [mlir] [mlir][tensor] Apply `InsertSliceOfTransferWriteOpFolder` only when `transfer_write` overwrites all elements of `insert_slice` (PR #108803)
Benjamin Maxwell
llvmlistbot at llvm.org
Mon Sep 30 02:02:03 PDT 2024
================
@@ -226,6 +216,22 @@ func.func @insert_slice_of_transfer_write(%t1 : tensor<?x12xf32>, %v : vector<5x
// -----
+// CHECK-LABEL: func @insert_slice_of_transfer_write_overwrite_all(
+// CHECK-SAME: %[[arg0:.*]]: tensor<1000x1000xf32>, %[[arg1:.*]]: vector<5x6xf32>, %[[arg2:.*]]: index, %[[arg3:.*]]: tensor<100x100xf32>
+func.func @insert_slice_of_transfer_write_overwrite_all(%arg0: tensor<1000x1000xf32>, %arg1: vector<5x6xf32>, %arg2: index, %arg3: tensor<100x100xf32>) -> tensor<1000x1000xf32> {
----------------
MacDue wrote:
Can you add a comment or update the test name to show that this is a negative test.
https://github.com/llvm/llvm-project/pull/108803
More information about the Mlir-commits
mailing list