machinst/x64: teach regalloc what FP instructions are moves;

and cosmetic changes after #1665 landed.
This commit is contained in:
Benjamin Bouvier
2020-06-10 18:37:45 +02:00
parent 0303834082
commit ef5de04d32
3 changed files with 9 additions and 9 deletions

View File

@@ -811,6 +811,11 @@ impl MachInst for Inst {
// %reg.
match self {
Self::Mov_R_R { is_64, src, dst } if *is_64 => Some((*dst, *src)),
Self::XMM_R_R { op, src, dst }
if *op == SSE_Op::SSE_Movss || *op == SSE_Op::SSE2_Movsd =>
{
Some((*dst, *src))
}
_ => None,
}
}