# wasm: use liveness analysis for locals · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b9b20b14ea5886aa862927daa7164073aab56132)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b9b20b14ea5886aa862927daa7164073aab56132

Requested commit: b9b20b14ea5886aa862927daa7164073aab56132

Commit: b9b20b14ea5886aa862927daa7164073aab56132

Tree: e2b60819d8beb2e3fc7c6dcf6f7d65d1ff37b093

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: use liveness analysis for locals

This hooks reusal of locals into liveness analysis.
Meaning that when an operand dies, and is a local,
it will automatically be freed so it can be re-used
when a new local is required. The result of this, is
a lower allocation required for locals. Having less
locals means smaller binary size, as well as faster
compilation speed when loaded by the runtime.

```

## Parents

- [99c3578f697fe0b0151049f74208b86244b4d171](https://git.cafe/gitcafe/zig/commit/99c3578f697fe0b0151049f74208b86244b4d171?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b9b20b14ea5886aa862927daa7164073aab56132?format=markdown)
