[Mlir-commits] [mlir] [mlir][bufferization]-Add ControlBuildSubsetExtractionFn to TensorEmptyElimination (PR #120851)

Amir Bishara llvmlistbot at llvm.org
Sat Dec 28 03:12:03 PST 2024


================
@@ -129,7 +148,7 @@ LogicalResult mlir::bufferization::eliminateEmptyTensors(
         &visitedOpOperands);
 
     for (Value v : emptyTensors) {
-      Operation *emptyTensorOp = v.getDefiningOp();
+      auto emptyTensorOp = v.getDefiningOp<tensor::EmptyOp>();
----------------
amirBish wrote:

Sure, missed it.

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


More information about the Mlir-commits mailing list