joker-eph wrote: Isn't this the kind of folder that can blow up the IR? I find constant folding on full tensors to be the kind of thing that is difficult to get right, and hardly possible without context. https://github.com/llvm/llvm-project/pull/92691