Do not align the stack frame for leaf functions not using the stack.

This commit is contained in:
Benjamin Bouvier
2019-11-06 16:48:34 +01:00
parent 1074c7675e
commit 143cb01489
6 changed files with 54 additions and 24 deletions

View File

@@ -351,7 +351,8 @@ pub trait TargetIsa: fmt::Display + Sync {
func.stack_slots.push(ss);
}
layout_stack(&mut func.stack_slots, word_size)?;
let is_leaf = func.is_leaf();
layout_stack(&mut func.stack_slots, is_leaf, word_size)?;
Ok(())
}