Skip to content

perf: optimize independent units on the compile threads - #4861

Open
tignear wants to merge 1 commit into
masterfrom
stack/tignear/perf/sv-optimizer-threads/optimize-independent-units-compile-threads--01f35cfb
Open

tignear wants to merge 1 commit into
masterfrom
stack/tignear/perf/sv-optimizer-threads/optimize-independent-units-compile-threads--01f35cfb

Conversation

@tignear

@tignear tignear commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

The SIR optimizer optimizes the independent execution units, processes and
function units on as many threads as OptimizeOptions::compile_threads
allows (by default the available parallelism), instead of at most four.
Each unit is optimized in place on its own, as before, so the result is the
same for every count.

AVIP axi4_base_test (nocb copy, heliodor-dev, 16 cores), before -> after:

  • the optimize phase 3.65 s -> 2.29 s; its 18,787 function units
    2.71 s -> 1.30 s
  • wall (quiet lock, two runs each) 1:15.7 / 1:12.7 -> 1:13.9 / 1:11.5
  • stdout identical; the UVM cases 18.10, 16.10 and uvm_scoreboard_env give
    identical output (182.6 / 247.0 / 288.8 G instructions:u, as before);
    the 16.9 elaboration exits 0
  • VeeR-EL2: compile 90.5 / 90.5 s -> 90.3 / 90.3 s, instructions:u
    1198.57 / 1198.64 G -> 1198.67 / 1198.67 G, the simulation's instructions
    equal

The SIR optimizer optimizes the independent execution units, processes and
function units on as many threads as `OptimizeOptions::compile_threads`
allows (by default the available parallelism), instead of at most four.
Each unit is optimized in place on its own, as before, so the result is the
same for every count.

AVIP axi4_base_test (nocb copy, heliodor-dev, 16 cores), before -> after:
- the `optimize` phase 3.65 s -> 2.29 s; its 18,787 function units
  2.71 s -> 1.30 s
- wall (quiet lock, two runs each) 1:15.7 / 1:12.7 -> 1:13.9 / 1:11.5
- stdout identical; the UVM cases 18.10, 16.10 and uvm_scoreboard_env give
  identical output (182.6 / 247.0 / 288.8 G instructions:u, as before);
  the 16.9 elaboration exits 0
- VeeR-EL2: compile 90.5 / 90.5 s -> 90.3 / 90.3 s, instructions:u
  1198.57 / 1198.64 G -> 1198.67 / 1198.67 G, the simulation's instructions
  equal

Change-Id: I01f35cfb8ee9b58d19aaa94ff9d311c7607ee002
@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-28T15:03:03.261734Z f1185ca 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

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

This branch has not been deployed

No deployments
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