Properly handle prog-moves with fixed srcs or dests

This commit is contained in:
Chris Fallin
2021-05-09 13:35:38 -07:00
parent 5c5ea4cb9b
commit 4f26b1c78f
3 changed files with 37 additions and 43 deletions

View File

@@ -708,8 +708,8 @@ pub trait Function {
}
/// Determine whether an instruction is a move; if so, return the
/// vregs for (src, dst).
fn is_move(&self, insn: Inst) -> Option<(VReg, VReg)>;
/// Operands for (src, dst).
fn is_move(&self, insn: Inst) -> Option<(Operand, Operand)>;
// --------------------------
// Instruction register slots