Sitelet https://github.com/fe-lang/sonatina/pull/388
Skip to content

Use reachable final spill accesses when placing heap buffers - #388

Merged
sbillig merged 2 commits into
mainfrom
perf/reachable-final-spill-bounds
Oct 5, 2026
Merged

sbillig merged 2 commits into
mainfrom
perf/reachable-final-spill-bounds

Conversation

@sbillig

@sbillig sbillig commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator

Compute each heap allocation's final-spill floor from the spill accesses reachable from its boundary. This avoids reserving spill space belonging only to unrelated control-flow paths.

Also exclude fixed terminal writes when every successor path halts before any further allocator memory access or internal call. This prevents finished return and revert buffers from unnecessarily raising spill reservations. Loops, internal returns, and possible later loads or stores retain their exclusions, preserving interference in both directions.

Stacked on #387.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-04T19:48:11.375064Z f50ea9b New commits
🔒 Security Review ✅ Completed 2026-10-04T19:55:29.054196Z f50ea9b New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sbillig
sbillig added this pull request to stack #390 October 4, 2026 17:25
@sbillig
sbillig force-pushed the perf/reachable-final-spill-bounds branch 4 times, most recently from 4bcef3e to 358cf1b Compare October 4, 2026 18:26
Base automatically changed from perf/reachable-object-lifetimes to main October 4, 2026 19:44
@sbillig
sbillig force-pushed the perf/reachable-final-spill-bounds branch from 358cf1b to f50ea9b Compare October 4, 2026 19:44
@sbillig
sbillig merged commit 6014184 into main Oct 5, 2026
12 checks passed
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.

1 participant