# wasm: keep result of \`cmp\` on the stack · gitcafe/zig

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

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

Visibility: public

Requested revision: 305b113a53cd5905d837ea620e2bcae8912c5938

Requested commit: 305b113a53cd5905d837ea620e2bcae8912c5938

Commit: 305b113a53cd5905d837ea620e2bcae8912c5938

Tree: 51c4733dee0daaae76060204888f1a21fe0f8aa6

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: keep result of `cmp` on the stack

By keeping the result on the stack, we prevent codegen
from generating unneccesary locals when we have subsequent instructions
that do not have to be re-used.

```

## Parents

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

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