# compiler: represent bitpacks as their backing integer · gitcafe/zig

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

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

Visibility: public

Requested revision: ffcf6549076401abe8d4af0754fbfe35f28df204

Requested commit: ffcf6549076401abe8d4af0754fbfe35f28df204

Commit: ffcf6549076401abe8d4af0754fbfe35f28df204

Tree: f22cceaae9bf97b8aa14173311e4fa26cd535fe3

Author: Matthew Lugg

Committer: Matthew Lugg

## Message

```
compiler: represent bitpacks as their backing integer

Now that https://github.com/ziglang/zig/issues/24657 has been
implemented, the compiler can simplify its internal representation of
comptime-known `packed struct` and `packed union` values. Instead of
storing them field-wise, we can simply store their backing integer
value. This simplifies many operations and improves efficiency in some
cases.

```

## Parents

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

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