dcaballe wrote: Didn't we have people with strong oppinions about the transpose -> shape_cast canonicalization because it's supposed to drop some information? Not sure I remember the details... @hanhanW, @MaheshRavishankar? https://github.com/llvm/llvm-project/pull/125966