rengolin wrote: > > Wouldn't this be a canonicalization? Can be done with a folder even. > > Canonicalizations shouldn't be _required_ part of the lowering. Fair, I wasn't thinking of lowering. https://github.com/llvm/llvm-project/pull/188041