zero9178 wrote: I am curious, do you think it'd be feasible for erase op (and replace op) to accommodate for the insertion point being erased? Eg move the insertion point to the next op if the current is being removed. https://github.com/llvm/llvm-project/pull/146908