Skip to content

Bound local optimizer to two sweeps - #1292

Merged
Frotty merged 11 commits into
masterfrom
codex/oss-single-pass-optimizer
Sep 4, 2026
Merged

Bound local optimizer to two sweeps#1292
Frotty merged 11 commits into
masterfrom
codex/oss-single-pass-optimizer

Conversation

@Frotty

@Frotty Frotty commented Sep 4, 2026

Copy link
Copy Markdown
Member

Follow-up to #1291. Simplifies local optimization by running exactly two sweeps instead of repeating the complete pipeline until convergence or a ten-round limit. The fixed cleanup sweep preserves deterministic dispatch alias normalization, register reuse, and dispatch-guard cleanup while making optimization cost predictable. Required lowering and dead-code/reachability cleanup remain unchanged. Tests: ClassesTests; LuaTranslationTests; OptimizerTests; LuaBackendAuditTests. The determinism fixture also passed 50 consecutive local invocations.

* Optimize Lua array reads and div-mod intrinsics

Remove typed primitive array normalization, invert legacy assertions to require raw reads, and keep erased-generic normalization intact. Emit raw div/mod primitives directly as Lua operators without helper definitions.

* Track Lua numeric intrinsics by IM identity
* Deduplicate Lua callback adapters

* Preserve renamed Lua callback targets
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 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-09-04T12:11:52.221411Z 3e22864 PR opened
ℹ️ 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.

@Frotty Frotty changed the title Run local optimizer pipeline once Avoid redundant local optimizer sweeps Sep 4, 2026
@Frotty Frotty changed the title Avoid redundant local optimizer sweeps Bound local optimizer to two sweeps Sep 4, 2026
Base automatically changed from big-lua-opt-update to master September 4, 2026 13:47
@Frotty
Frotty merged commit d065058 into master Sep 4, 2026
3 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