[Mlir-commits] [mlir] [mlir][tensor] move tensor insert canonicalization to pattern (PR #142671)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Jun 3 15:09:16 PDT 2025
================
@@ -176,6 +176,9 @@ void populateFoldConstantExtractSlicePatterns(
return false;
});
+/// Patterns to fold inserts into a constant into a new constant.
+void populateFoldInsertAfterConstant(RewritePatternSet &patterns);
----------------
asraa wrote:
Would it be OK to expose the single patterns in the header and have downstream users use the pattern? Grouping them in a pass means choosing some heuristic generally for users for when to apply this pattern, or I could make a tensor size option for it.
https://github.com/llvm/llvm-project/pull/142671
More information about the Mlir-commits
mailing list