[Mlir-commits] [mlir] [mlir][Transforms] CSE: Add filter options to control CSE'ing (PR #115639)
Mehdi Amini
llvmlistbot at llvm.org
Mon Nov 11 02:50:21 PST 2024
joker-eph wrote:
> Some context: In my use case, certain ops with regions should be a hoisting barrier for certain nested ops. CSE is one example of hoisting (by de-deduplication). Another one is the GreedyPatternRewriteDriver, which hoists constants.
In general, every request I saw about this were instead better addressed with a reverse transformation: this is something that needs profitability and would be suitable even if the input program would have the constant (or the expressions) already outside the target region.
https://github.com/llvm/llvm-project/pull/115639
More information about the Mlir-commits
mailing list