Make unused stack slots zero sized in stack2reg
This commit is contained in:
parent
167c7f2201
commit
aa5c49cf2f
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ pub(super) fn optimize_function<T: std::fmt::Debug>(
|
||||||
}
|
}
|
||||||
|
|
||||||
if users.stack_store.is_empty() && users.stack_load.is_empty() {
|
if users.stack_store.is_empty() && users.stack_load.is_empty() {
|
||||||
// FIXME make stack_slot zero sized.
|
opt_ctx.ctx.func.stack_slots[stack_slot.0].size = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue