llvm-project
cde5ee0a - Pass an explicit MRI to MachineInstr::swapOperands

Commit
11 days ago
Pass an explicit MRI to MachineInstr::swapOperands Like the static moveOperands helper in MachineInstr.cpp, take an explicit MachineRegisterInfo pointer instead of looking it up with getRegInfo(). If it is non-null, forward to MachineRegisterInfo::swapOperands to update use-def lists. Otherwise assert that neither operand is a register on a use-def list, and just swap them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Committer
Parents
Loading