# spirv: add liveness checks · gitcafe/zig

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

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

Visibility: public

Requested revision: 3c5ab4dd3d23b191b184b70dc8255b253a7ddc2c

Requested commit: 3c5ab4dd3d23b191b184b70dc8255b253a7ddc2c

Commit: 3c5ab4dd3d23b191b184b70dc8255b253a7ddc2c

Tree: acfe8f23d30ca6b08cef7d8615f3bd1b6bd80c5c

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
spirv: add liveness checks

When a result of a pure instruction is not used, it also does not need to
be generated. The other backends already implement these checks, they were
ignored in SPIR-V up until now. New instructions added in the future should
have these be implemented from the start.

```

## Parents

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

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