# AstGen: avoid unnecessary coercion instructions · gitcafe/zig

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

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

Visibility: public

Requested revision: f0a4bb6bd15b8a605e450af3359fe1622302463a

Requested commit: f0a4bb6bd15b8a605e450af3359fe1622302463a

Commit: f0a4bb6bd15b8a605e450af3359fe1622302463a

Tree: b24a50cc98682f16487b0e2e43abdd1f82ef7459

Author: mlugg

Committer: mlugg

## Message

```
AstGen: avoid unnecessary coercion instructions

Coercions such as `@as(usize, 0)` can be trivially elided by matching
these cases and translating to fixed InternPool indices.

```

## Parents

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

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