[Mlir-commits] [mlir] [mlir][bufferization]-Replace only one use in TensorEmptyElimination (PR #118958)
Amir Bishara
llvmlistbot at llvm.org
Tue Dec 17 07:00:43 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.
----------------
amirBish wrote:
Great, modified the PR to include only this change.
https://github.com/llvm/llvm-project/pull/118958
More information about the Mlir-commits
mailing list