Avoid stack-to-stack moves by allocating an extra spillslot and re-using the scratch reg instead.

This commit is contained in:
Chris Fallin
2021-06-10 22:36:02 -07:00
parent 09b2dd4e73
commit 1bd1248cb5
3 changed files with 123 additions and 37 deletions

View File

@@ -146,7 +146,7 @@ impl Function for Func {
self.num_vregs
}
fn spillslot_size(&self, regclass: RegClass, _: VReg) -> usize {
fn spillslot_size(&self, regclass: RegClass) -> usize {
match regclass {
RegClass::Int => 1,
RegClass::Float => 2,