WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

Commit 1fc42b41 authored by qinsoon's avatar qinsoon
Browse files

[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