Repository navigation
perf(sv): lower the specialized modules in parallel - #4858
Merged
mergify[bot] merged 1 commit intoNov 28, 2026
Conversation
The specializations still to lower are prepared one after another in the order of the modules, which may analyze one (`prepare_specialization`: the only step that uses the design), and then lowered on up to `compile_workers` threads, the largest first (`lower_specialization`). Each lowering keeps its warnings; they and the modules are passed on in the order of the modules, up to the first that fails, as lowering them one after another did. AVIP axi4_base_test (nocb copy, heliodor-dev, 16 cores, quiet lock), master -> the stack tip, two runs each: `specialize_modules` 6.1 / 5.7 s -> 2.4 / 2.6 s (bounded by hvl_top, ~2.4 s); with the package states of the commit before, wall 1:24.6 / 1:24.1 -> 1:13.3 / 1:13.0 (-13%); peak RSS 10.90 / 10.96 GB -> 10.93 / 11.03 GB; stdout identical to master at 1, 4, 8 and 16 threads. Gates (heliodor-dev, master ee408c1 -> the stack tip at the default 16 compile threads): - the UVM cases give output identical to master: 18.10 instructions:u 182.2 -> 182.6 G, 16.10 245.4 -> 247.1 G, uvm_scoreboard_env 287.2 -> 289.0 G; the 16.9 elaboration exits 0 (183.8 -> 185.5 G); - VeeR-EL2: compile 91.7 / 92.5 s -> 89.3 / 89.5 s; instructions:u 1197.11 / 1197.04 G -> 1198.64 / 1198.64 G (+0.13%, the thread overhead: 1197.02 G with --compile-threads 1). Its simulation executes 12740.84 M -> 12741.64 M instructions (+0.006%) at 1 and at 16 threads alike, from the first commit of the stack on, which only moves the task runner between crates: the layout of the host binary, not the generated code. Change-Id: If495923592bd5fedd86d546274efa7c78f1a1f63
Contributor
Author
|
This pull request is part of a Mergify stack:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
|
Queue requested — the merge queue status continues in this comment ↓. |
Contributor
✅ Merged into
|
mergify
Bot
changed the base branch from
stack/tignear/perf/sv-parallel-lowering/lower-state-modules-pkgs-parallel--3c8a4060
to
master
November 28, 2026 14:47
An error occurred while trying to automatically change base from
stack/tignear/perf/sv-parallel-lowering/lower-state-modules-pkgs-parallel--3c8a4060
to
master
November 28, 2026 14:47
mergify
Bot
deleted the
stack/tignear/perf/sv-parallel-lowering/lower-specialized-modules-parallel--f4959235
branch
November 28, 2026 14:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The specializations still to lower are prepared one after another in the
order of the modules, which may analyze one (
prepare_specialization: theonly step that uses the design), and then lowered on up to
compile_workersthreads, the largest first (lower_specialization).Each lowering keeps its warnings; they and the modules are passed on in
the order of the modules, up to the first that fails, as lowering them one
after another did.
AVIP axi4_base_test (nocb copy, heliodor-dev, 16 cores, quiet lock),
master -> the stack tip, two runs each:
specialize_modules6.1 / 5.7 s ->2.4 / 2.6 s (bounded by hvl_top, ~2.4 s); with the package states of the
commit before, wall 1:24.6 / 1:24.1 -> 1:13.3 / 1:13.0 (-13%); peak RSS
10.90 / 10.96 GB -> 10.93 / 11.03 GB; stdout identical to master at 1, 4,
8 and 16 threads.
Gates (heliodor-dev, master ee408c1 -> the stack tip at the default 16
compile threads):
182.2 -> 182.6 G, 16.10 245.4 -> 247.1 G, uvm_scoreboard_env 287.2 ->
289.0 G; the 16.9 elaboration exits 0 (183.8 -> 185.5 G);
1197.11 / 1197.04 G -> 1198.64 / 1198.64 G (+0.13%, the thread
overhead: 1197.02 G with --compile-threads 1). Its simulation executes
12740.84 M -> 12741.64 M instructions (+0.006%) at 1 and at 16 threads
alike, from the first commit of the stack on, which only moves the task
runner between crates: the layout of the host binary, not the generated
code.
Depends-On: #4857