[Mlir-commits] [mlir] [mlir][tensor] move tensor.insert constant folding out of canonicalization (PR #142671)
Mehdi Amini
llvmlistbot at llvm.org
Wed Jun 4 13:49:59 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);
----------------
joker-eph wrote:
I had an internship proposal to work on a module/function level constant folding pass with a pluggable cost-model, but the internship got canceled unfortunately :(
(It's non-trivial to design, which is the kind of thing I like having an intern explore for some time)
https://github.com/llvm/llvm-project/pull/142671
More information about the Mlir-commits
mailing list