Skip to content

[NFC] Use bitfields for bools in EffectAnalzyer#8417

Merged
tlively merged 1 commit intomainfrom
effects-bitfields2
Mar 4, 2026
Merged

[NFC] Use bitfields for bools in EffectAnalzyer#8417
tlively merged 1 commit intomainfrom
effects-bitfields2

Conversation

@tlively
Copy link
Member

@tlively tlively commented Mar 4, 2026

EffectAnalyzer tracks many effects that are just bools. Update it to use
one-bit bitfields for these bools. This not only makes EffectAnalyzer
smaller now, but also allows us to add more effects in the future
without making it larger. This change does not appear to have a
meaningful effect on the performance of -O3 on large Wasm GC binaries,
though.

EffectAnalyzer tracks many effects that are just bools. Update it to use
one-bit bitfields for these bools. This not only makes EffectAnalyzer
smaller now, but also allows us to add more effects in the future
without making it larger. This change does not appear to have a
meaningful effect on the performance of -O3 on large Wasm GC binaries,
though.
@tlively tlively merged commit ba58583 into main Mar 4, 2026
17 checks passed
@tlively tlively deleted the effects-bitfields2 branch March 4, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants