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);
|
let inst = Inst::new(inst);
|
||||||
for (i, op) in this.func.inst_operands(inst).iter().enumerate() {
|
for (i, op) in this.func.inst_operands(inst).iter().enumerate() {
|
||||||
match op.kind() {
|
match op.kind() {
|
||||||
OperandKind::Def | OperandKind::Use => {
|
OperandKind::Def | OperandKind::Mod => {
|
||||||
let alloc = this.get_alloc(inst, i);
|
let alloc = this.get_alloc(inst, i);
|
||||||
redundant_moves.clear_alloc(alloc);
|
redundant_moves.clear_alloc(alloc);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user