[Mlir-commits] [mlir] [mlir] Add option to run CSE between greedy rewriter iterations (PR #193081)

Mehdi Amini llvmlistbot at llvm.org
Tue Apr 21 01:55:07 PDT 2026


joker-eph wrote:

> Can you also update [`ApplyPatternsOp::applyToOne`](https://github.com/llvm/llvm-project/blob/main/mlir/lib/Dialect/Transform/IR/TransformOps.cpp#L452)? We should be able to simplify that code, now that we have a CSE option.

Yes, done. There is a wrinkle in that there is some sort of handling of non isolated-from-above operations there, which requires to keep some CSE code for this case.
(this would handle a pattern applied to a scf.for and CSE would be performed inside the op).

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


More information about the Mlir-commits mailing list