Skip to content

refactor(sv): lower the package state modules as self-contained tasks - #4856

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/perf/sv-parallel-lowering/lower-pkg-state-modules-self-contained-tasks--ba2b1236
Nov 28, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/perf/sv-parallel-lowering/lower-pkg-state-modules-self-contained-tasks--ba2b1236

Conversation

@tignear

@tignear tignear commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Each package state module is lowered by a task that owns its module and
returns its warnings, the lines of its recursion report and its result;
lower_package_states passes them on in the order of the modules, up to the
first that fails, as the loop that lowered them one after another did. The
tasks still run one after another on the calling thread.

The ordered task runner of the native backend (compile_resources:: compile_tasks_with) moves to celox_frontend_core::tasks, so that the
frontend can use it too, with run_owned for tasks that own their input.
Its worker threads now log through the caller's tracing dispatcher and get
an 8 MiB stack, as the main thread has. No change in output.

VeeR-EL2 (heliodor-dev): instructions:u 1197.11 / 1197.04 G -> 1197.10 G;
its simulation executes 12740.84 M -> 12741.64 M instructions (+0.006%),
the layout of the host binary after the runner moved between crates (the
same with the runner's threads set up as before).

Each package state module is lowered by a task that owns its module and
returns its warnings, the lines of its recursion report and its result;
`lower_package_states` passes them on in the order of the modules, up to the
first that fails, as the loop that lowered them one after another did. The
tasks still run one after another on the calling thread.

The ordered task runner of the native backend (`compile_resources::
compile_tasks_with`) moves to `celox_frontend_core::tasks`, so that the
frontend can use it too, with `run_owned` for tasks that own their input.
Its worker threads now log through the caller's tracing dispatcher and get
an 8 MiB stack, as the main thread has. No change in output.

VeeR-EL2 (heliodor-dev): instructions:u 1197.11 / 1197.04 G -> 1197.10 G;
its simulation executes 12740.84 M -> 12741.64 M instructions (+0.006%),
the layout of the host binary after the runner moved between crates (the
same with the runner's threads set up as before).

Change-Id: Iba2b12367a0c9f2f5388d1dceee72b67caf56fb0
@tignear

tignear commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 refactor(sv): lower the package state modules as self-contained tasks #4856 👈
2 perf(sv): lower the state modules of packages in parallel #4857
3 perf(sv): lower the specialized modules in parallel #4858

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T14:00:38.881820Z 490549f 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.

@mergify

mergify Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Queue requested — the merge queue status continues in this comment ↓.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 490549f423

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Nov 28, 2026
@mergify mergify Bot added the queued Mergify queue entry label Nov 28, 2026
@mergify

mergify Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into master as 322a391 at 14:39 UTC

13 min in the queue, 11 min of it CI.

So far

  • ✅ Entered the queue Sat 28 Nov, 14:26 · rule changes · triggered by rule Queue explicitly requested merges
  • ✅ Passed · draft #4859
  • ✅ Merged 14:39 · 322a391 · merge
9 merge conditions met
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • check-success = Verify workflow lockfile
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Queue validation
    • check-neutral = @github-actions/Queue validation
    • check-skipped = @github-actions/Queue validation
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Verify workflow lockfile
    • check-neutral = @github-actions/Verify workflow lockfile
    • check-skipped = @github-actions/Verify workflow lockfile

Times in UTC · dashboard · how the merge queue works

@mergify
mergify Bot merged commit 322a391 into master Nov 28, 2026
29 checks passed
@mergify
mergify Bot deleted the stack/tignear/perf/sv-parallel-lowering/lower-pkg-state-modules-self-contained-tasks--ba2b1236 branch November 28, 2026 14:39
@mergify mergify Bot removed the queued Mergify queue entry label Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant