[Mlir-commits] [mlir] [mlir] Add reshape propagation patterns for tensor.pad (PR #94489)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Jun 6 11:31:55 PDT 2024
================
@@ -1937,6 +2069,8 @@ void mlir::linalg::populateFoldReshapeOpsByExpansionPatterns(
const ControlFusionFn &controlFoldingReshapes) {
patterns.add<FoldReshapeWithGenericOpByExpansion>(patterns.getContext(),
controlFoldingReshapes);
+ patterns.add<FoldPadWithProducerReshapeOpByExpansion>(patterns.getContext(),
----------------
MaheshRavishankar wrote:
Ok, I twisted myself in a knot when looking at tests. You are right.
https://github.com/llvm/llvm-project/pull/94489
More information about the Mlir-commits
mailing list