From 2851ac80c788de9f01229d936d22832b8d19935b Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Wed, 9 Jun 2021 23:03:16 -0700 Subject: [PATCH] Working redundant-move elimination --- src/ion/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ion/mod.rs b/src/ion/mod.rs index 2f86326..61664ff 100644 --- a/src/ion/mod.rs +++ b/src/ion/mod.rs @@ -4677,7 +4677,7 @@ impl<'a, F: Function> Env<'a, F> { let inst = Inst::new(inst); for (i, op) in this.func.inst_operands(inst).iter().enumerate() { match op.kind() { - OperandKind::Def | OperandKind::Use => { + OperandKind::Def | OperandKind::Mod => { let alloc = this.get_alloc(inst, i); redundant_moves.clear_alloc(alloc); }