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

Limit unknown-pointer liveness to reachable allocations - #387

Merged
sbillig merged 1 commit into
mainfrom
perf/reachable-object-lifetimes
Oct 4, 2026
Merged

sbillig merged 1 commit into
mainfrom
perf/reachable-object-lifetimes

Conversation

@sbillig

@sbillig sbillig commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator

Restrict unknown-pointer object closures to allocations that may have executed before the use. Track allocation availability through the CFG and use predecessor-exit information for phi operands.

Expanding an unknown pointer to every allocation in the function made buffers in mutually exclusive dispatcher branches interfere. The narrower closure allows those buffers to share storage while retaining allocations reachable through loop backedges and preserving known provenance and escape constraints.

Stacked on #386.

@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-04T18:29:05.064113Z 37cb078 New commits
🔒 Security Review ✅ Completed 2026-10-04T19:00:35.063156Z 37cb078 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-object-lifetimes branch 3 times, most recently from df4c582 to a1a7954 Compare October 4, 2026 18:26
Base automatically changed from perf/rematerialize-cheap-calldata-loads to main October 4, 2026 18:26
@sbillig
sbillig force-pushed the perf/reachable-object-lifetimes branch from a1a7954 to 37cb078 Compare October 4, 2026 18:26
@sbillig
sbillig merged commit 5f88755 into main Oct 4, 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