Working redundant-move elimination
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user