[Mlir-commits] [mlir] [mlir][tensor] Fold pack and unpack of empty input tensor (PR #92247)

lorenzo chelini llvmlistbot at llvm.org
Tue May 21 10:26:30 PDT 2024


================
@@ -93,12 +93,76 @@ struct FoldEmptyTensorWithExtractSliceOp
   bool foldSingleUseOnly = false;
 };
 
+/// tensor.empty does not define any tensor contents, so an unpadded pack
----------------
chelini wrote:

right, I see. I think in this case we can "strength reduce" to pad but not in this PR.

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


More information about the Mlir-commits mailing list