Skip to content

Commit

Permalink
aarch64: redefine is_move now that regalloc.rs bug has been fixed;
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjbvr committed Apr 29, 2020
1 parent 983c2a0 commit 767bcaa
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cranelift/codegen/src/isa/aarch64/inst/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1721,9 +1721,6 @@ impl MachInst for Inst {

fn is_move(&self) -> Option<(Writable<Reg>, Reg)> {
match self {
// TODO a regalloc assertion is triggered if we don't have this, see also #1586 on
// wasmtime, as well as https://github.com/bytecodealliance/regalloc.rs/issues/52.
&Inst::Mov { rm, .. } if rm == stack_reg() => None,
&Inst::Mov { rd, rm } => Some((rd, rm)),
&Inst::FpuMove64 { rd, rn } => Some((rd, rn)),
_ => None,
Expand Down

0 comments on commit 767bcaa

Please sign in to comment.