[Mlir-commits] [mlir] [mlir][tensor] Fold rank increasing expand_shape into insert_slice (PR #93018)

Adam Siemieniuk llvmlistbot at llvm.org
Thu May 23 05:21:32 PDT 2024


================
@@ -79,12 +79,42 @@ struct FoldInsertOfRankReducingInsert : public OpRewritePattern<OpTy> {
     return success();
   }
 };
+
+/// Fold rank increasing expand_shape into insert_slice.
----------------
adam-smnk wrote:

Right, I couldn't settle on a nicer name.
Renamed to "padding" as it should reflect this type of expand better.

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


More information about the Mlir-commits mailing list