Skip to content

Conversation

@zharinov
Copy link
Member

Summary

  • Add LayoutIR intermediate representation for cache-line aware placement
  • Pack successor instructions into free space of predecessor blocks
  • Score candidates by weighted reference distance (direct=1.0, 1-hop=0.5, etc.)

Why

Improves d-cache locality. When X → Y and X is in block B, Y gets packed into an earlier block with free space that references B, keeping hot paths in cache.

@zharinov zharinov enabled auto-merge (squash) January 15, 2026 20:25
@zharinov zharinov merged commit f4af48d into master Jan 15, 2026
3 checks passed
@zharinov zharinov deleted the perf/cache-line-packing branch January 15, 2026 20:27
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