Repository navigation
perf(sv): avoid copying published discovery prefixes - #2230
Merged
Conversation
Dimension discovery retained a published copy-on-write scope while extending the same prefix, repeatedly copying all preceding bindings. Remove the exact published snapshot during query-free mutation and publish the updated scope afterwards. Validation: analyzer unit tests and a 128-declaration regression bounding copied bindings; clippy and formatting. The regression reduces copied bindings from 25026 to at most 1024. Change-Id: I2d3a1a3043eb5b104b63a9658d8c88b64ac81bc5
This was referenced Oct 27, 2026
Codex Review SummaryThis 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
Author
|
This pull request is part of a Mergify stack:
|
This was referenced Oct 27, 2026
Contributor
|
Queued — the merge queue status continues in this comment ↓. |
Contributor
✅ Merged into
|
43 of 73 tasks
Base automatically changed from
stack/tignear/perf/taxi-memory-runtime/verify-coupled-rewrites-once-per-batch--ded1728d
to
master
October 27, 2026 07:20
mergify
Bot
deleted the
stack/tignear/perf/taxi-memory-runtime/avoid-copying-published-discovery-prefixes--2d3a1a30
branch
October 27, 2026 07:37
This was referenced Oct 27, 2026
Closed
tignear
added a commit
that referenced
this pull request
Oct 27, 2026
Zero-argument functions that build constant masks with unpacked scratch arrays were lowered into runtime loops, including 8100-bit dynamic shifts in LFSR mask generation. Reuse the bounded constant interpreter and cache results after proving the function has no persistent state, global writes, simulation-state reads or effectful callees. Preserve runtime initialization in both state modes and leave unsupported or unknown-sensitive evaluations to ordinary lowering. Validation covers wide arrays and cache reuse, persistent/global state and direct/indirect effects, automatic initial values, unknown intermediates, aggregate slices and non-integral locals. A frontend regression bounds emitted runtime instructions in both state modes. Analyzer/frontend unit suites, clippy and formatting pass. Before rebasing onto current master, the complete stack passed 6169 shared backend variants plus 1814 owning/API tests. Unmodified original MAC_DATA_W=32 board tests passed at O1 with partitioned settle disabled: VCU108 compiled in 69s (1.46 GiB peak), ran in 92s; HTG9200 compiled in 155s (3.15 GiB peak), ran in 85s with all 36 MAC tests and 3456 frames. Final compiled circuit and metadata were byte-identical to the full cocotb passes. After rebasing onto master 5f752a4, all seven commits passed their own focused tests, lint and formatting independently. The final stack passed 6199 shared backend executions, including the six newly merged scalar-constraint and logical-implication cases on all five compiled backend variants, plus VPI tests, no-host checking, workspace check and Biome. No existing exclusions were removed. After the generated-callee arena review fix in the lower members, all 623 x86 unit tests, 239 native library tests and 41 API tests passed. The final updated stack also passed 3511 affected native/native-parallel/native-image shared executions and workspace check; unchanged Cranelift/WASM coverage remains covered by the earlier 6199-execution run. After syncing merged #2229/#2230 and rebasing onto master 626dc7c, #2233 fixes the default-stack class-specialization CI abort, also inherited by the upper members. The complete stack passes 848 analyzer unit tests (3 existing ignored), 10 frontend unit tests, the exact CI regression with all comparison features, formatting and host-runtime-disabled SV checking. At #2233, all 842 analyzer, 372 class integration and 57 VPI tests pass, with analyzer clippy and explicit 2 MiB stack coverage. Change-Id: I268b61b85e35aef99179cb8ca5e7139d787c1924
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.
Dimension discovery retained a published copy-on-write scope while extending the same prefix, repeatedly copying all preceding bindings. Remove the exact published snapshot during query-free mutation and publish the updated scope afterwards.
Validation: analyzer unit tests and a 128-declaration regression bounding copied bindings; clippy and formatting. The regression reduces copied bindings from 25026 to at most 1024.
Depends-On: #2229