Skip to content

Optimize side table masks#713

Merged
ia0 merged 16 commits into
google:dev/fast-interpfrom
zhouwfang:optimize-masks
Jan 3, 2025
Merged

Optimize side table masks#713
ia0 merged 16 commits into
google:dev/fast-interpfrom
zhouwfang:optimize-masks

Conversation

@zhouwfang

@zhouwfang zhouwfang commented Jan 2, 2025

Copy link
Copy Markdown
Contributor

Based on experiments, these are the smallest masks to pass CI. In other words, SideTableEntry only requires u35 at this point. I'll add the fields from func_type() and func() in module.rs to the side table in #711, and SideTableEntry as u64 might not be sufficient.

#46

@zhouwfang
zhouwfang requested a review from ia0 as a code owner January 2, 2025 23:50

@ia0 ia0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's most probably too strict on the counts. I think we should eventually end up with:

  • 16 bits delta IP
  • 16 bits delta STP
  • 4 bits val count
  • 12 bits pop count

This gives 48 bits aligned on 16 bits.

@ia0
ia0 merged commit b9de9e9 into google:dev/fast-interp Jan 3, 2025
@zhouwfang
zhouwfang deleted the optimize-masks branch January 4, 2025 04:09
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