https://github.com/jryans commented: Change looks correct to me overall. The pass is creating replacement instructions, so it make sense to copy over the original location. Just a small nit in the test to fix up. https://github.com/llvm/llvm-project/pull/91443