Pass MRI to MachineInstr::swapOperands
MachineInstr::swapOperands now takes an explicit MachineRegisterInfo
pointer. Pass the function's MRI when the commuted instruction is in a
function, and null for a new or cloned instruction that has not been
inserted yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>