================ ---------------- rengolin wrote: Shouldn't this also use `isOutput`? If the original list has ops chained to each other, you want to keep their order. https://github.com/llvm/llvm-project/pull/186647