https://github.com/Keenuts approved this pull request. LGTM for this PR. Once https://github.com/llvm/llvm-project/pull/110507 is merged, shall the Machine Sink pass be updated to also use TII to query `isPhi`? https://github.com/llvm/llvm-project/pull/116060