Commit 1fc42b41 authored by qinsoon's avatar qinsoon

[wip] mov will not kill a register (this is not acutally correct, we

should check src/dest, if src and dst is the same, it doesnt kill
anything)
parent e5d8b5a3
......@@ -124,8 +124,10 @@ pub fn validate_regalloc(cf: &CompiledFunction,
} else {
// we need to kill the reg, so that other temps cannot use it
// (its value has been defined)
debug!("Temp/Reg{} is not liveout, will be killed", reg_def);
kill_reg(reg_def, &mut alive);
if !mc.is_move(i) {
debug!("Temp/Reg{} is not liveout, will be killed", reg_def);
kill_reg(reg_def, &mut alive);
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment