diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-05-29 22:33:40 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:47:57 -0700 |
| commit | 66f83f27a2904180bae7797a7c87c6eddc7eebff (patch) | |
| tree | bd3ef82451b2f04d720d84a9ed44c32d54c78455 /src/codegen | |
| parent | 27f1ad8afde86c8f734deeb05f5c8cad910275e4 (diff) | |
| download | zig-66f83f27a2904180bae7797a7c87c6eddc7eebff.tar.gz zig-66f83f27a2904180bae7797a7c87c6eddc7eebff.zip | |
InternPool: avoid indexToKey recursion for type_enum_auto
Recursion makes this hot function more difficult to profile and
optimize.
This commit adds the integer tag type to the type_enum_auto encoding
even though the integer tag type can be inferred based on the number of
fields of the enum. This avoids a call to getAssumeExists of the integer
tag type inside indexToKey.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
