Skip to content

Commit aa5c49c

Browse files
committed
Make unused stack slots zero sized in stack2reg
1 parent 167c7f2 commit aa5c49c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/optimize/stack2reg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ pub(super) fn optimize_function<T: std::fmt::Debug>(
237237
}
238238

239239
if users.stack_store.is_empty() && users.stack_load.is_empty() {
240-
// FIXME make stack_slot zero sized.
240+
opt_ctx.ctx.func.stack_slots[stack_slot.0].size = 0;
241241
}
242242
}
243243

0 commit comments

Comments
 (0)