Working redundant-move elimination

This commit is contained in:
Chris Fallin
2021-06-09 23:03:16 -07:00
parent f898b8dcbd
commit 2851ac80c7

View File

@@ -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);
}