aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-05-29 22:33:40 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:47:57 -0700
commit66f83f27a2904180bae7797a7c87c6eddc7eebff (patch)
treebd3ef82451b2f04d720d84a9ed44c32d54c78455 /src/codegen/c.zig
parent27f1ad8afde86c8f734deeb05f5c8cad910275e4 (diff)
downloadzig-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/c.zig')
0 files changed, 0 insertions, 0 deletions