[mlir] Preserve cached operation order through splice (#246641)
Improve `transferNodesFromList` for `mlir::Operation` to preserve the
parent block ordering info as much as possible.
In particular we don't need to invalidate the source block order, and
when the slicing is within the same block and we only move a single
operation we can simply invalidate the one operation instead of the
entire block.
Supersede #246563.
Assisted-by: Codex