~mpu/qbe#9: 
Stack slot coalescing

The following code creates a lot of stack slots that it only uses once:

https://paste.sr.ht/~sircmpwn/0c96cf330c15568c36ea86b477f3add3db912cc5

(from https://git.sr.ht/~sircmpwn/helios/tree/master/item/main.ha)

This requires 280 bytes of stack space. It would be greatly improved if the dead slots were reused once we're done with those objects.

Status
RESOLVED FIXED
Submitter
~sircmpwn
Assigned to
No-one
Submitted
1 year, 6 months ago
Updated
1 year, 16 days ago
Labels
No labels applied.

~mpu REPORTED FIXED 1 year, 16 days ago

Large stack sizes should be mitigated by commit 674901b71834739cccf3f8665833dc125d1172b7.

~sircmpwn 1 year, 16 days ago

Nice work! Thanks.

Register here or Log in to comment, or comment via email.