[Mlir-commits] [mlir] [mlir][tensor] Apply `InsertSliceOfTransferWriteOpFolder` only when `transfer_write` overwrites all elements of `insert_slice` (PR #108803)

Han-Chung Wang llvmlistbot at llvm.org
Tue Sep 17 04:51:16 PDT 2024


================
@@ -154,6 +167,13 @@ LogicalResult InsertSliceOfTransferWriteOpFolder::matchAndRewrite(
   return success();
 }
 
+bool InsertSliceOfTransferWriteOpFolder::doesTransferWriteCoverInsertSlice(
+    vector::TransferWriteOp writeOp, tensor::InsertSliceOp insertSliceOp,
+    MLIRContext *context) {
+  // Todo
----------------
hanhanW wrote:

This is meaningless. Can you elaborate what needs to be done?

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


More information about the Mlir-commits mailing list