[Mlir-commits] [mlir] [mlir] Add missing pad reshape propagation patterns (PR #168888)

Ian Wood llvmlistbot at llvm.org
Thu Nov 20 11:24:39 PST 2025


================
@@ -2239,6 +2420,8 @@ void mlir::linalg::populateFoldReshapeOpsByExpansionPatterns(
                                                     controlFoldingReshapes);
   patterns.add<FoldPadWithProducerReshapeOpByExpansion>(patterns.getContext(),
                                                         controlFoldingReshapes);
+  patterns.add<FoldExpandShapeWithProducerPadOp>(patterns.getContext(),
----------------
IanWood1 wrote:

Nit: For consistency with `FoldReshapeWithProducerPadOpByCollapsing`, consider renaming this to `FoldReshapeWithProducerPadOpByExpansion`

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


More information about the Mlir-commits mailing list