[Mlir-commits] [mlir] [mlir][vector] Support complete folding in single pass for vector.insert/vector.extract (PR #142124)

Yang Bai llvmlistbot at llvm.org
Sat May 31 08:51:15 PDT 2025


yangtetris wrote:

> For testing, would it make sense to add a pass similar to `--canonicalize` that just invokes `tryToFold` once for every op? That would be very helpful to separate folding testing from canonicalization testing.

I happened to see an existing pass that implements what you said. Do you think it is a good choice to use [TestConstantFold](https://github.com/llvm/llvm-project/blob/main/mlir/test/lib/Transforms/TestConstantFold.cpp#L16) for folding tests?

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


More information about the Mlir-commits mailing list