diff options
| author | Quentin Carbonneaux <[email protected]> | 2022-11-20 22:14:41 +0100 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2022-11-20 22:14:41 +0100 |
| commit | 674901b71834739cccf3f8665833dc125d1172b7 (patch) | |
| tree | 34da28ca9697819d5250d45deaea631007165de0 /all.h | |
| parent | f5007126f3140a8c932d393c5b217308b80bd46a (diff) | |
new slot coalescing pass
This pass limits stack usage when
many small aggregates are allocated
on the stack. A fast liveness
analysis figures out which slots
interfere and the pass then fuses
slots that do not interfere. The
pass also kills stack slots that
are only ever assigned.
On the hare stdlib test suite, this
fusion pass managed to reduce the
total eligible slot bytes count
by 84%.
The slots considered for fusion
must not escape and not exceed
64 bytes in size.
Diffstat (limited to 'all.h')
| -rw-r--r-- | all.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -514,7 +514,8 @@ void fillloop(Fn *); void simpljmp(Fn *); /* mem.c */ -void memopt(Fn *); +void promote(Fn *); +void coalesce(Fn *); /* alias.c */ void fillalias(Fn *); |
