[Mlir-commits] [mlir] [MLIR][Tensor] Remove FoldDimOf[Expand|Collapse]Shape Pattern (PR #134219)

Mehdi Amini llvmlistbot at llvm.org
Tue Apr 8 01:11:18 PDT 2025


joker-eph wrote:

> None of the other tensor.dim resolution patterns are run during canonicalizations. They have non-local effects that might be too hard a hammer for canonicalizations, and was removed from canonicalizations a really long time ago.

I don't see the non-local effects on the current test change, can you elaborate on this please? Maybe an example showing the effect of this canonicalization pattern that shouldn't be a canonicalization?

(I'd rather see this resolved before anyone merges this)

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


More information about the Mlir-commits mailing list