[Mlir-commits] [mlir] [mlir][bufferization]-Support unhandled cases in EmptyTensorElimination (PR #118958)

Matthias Springer llvmlistbot at llvm.org
Mon Dec 16 08:07:31 PST 2024


================
@@ -159,8 +194,9 @@ LogicalResult mlir::bufferization::eliminateEmptyTensors(
         replacement = rewriter.create<tensor::CastOp>(v.getLoc(), v.getType(),
                                                       replacement);
       }
-      // Replace the tensor::EmptyOp.
-      rewriter.replaceOp(emptyTensorOp, replacement);
+      // Replace the specific use of the tensor::EmptyOp.
----------------
matthias-springer wrote:

This part makes sense to me, this could be a separate PR.


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


More information about the Mlir-commits mailing list