Repository navigation
merge queue: checking #2230 on master (e364e4d), stacked on #2207, #2174 and #2229 - #2245
Closed
mergify[bot] wants to merge 8 commits into
Closed
mergify[bot] wants to merge 8 commits into
mergify[bot] wants to merge 8 commits into
Conversation
Coupled store sinking and mux branchification rescanned the entire execution unit after each independent rewrite. Verify the completed batch once, retaining whole-unit validation while avoiding quadratic rescans on large designs. Validation: optimizer unit tests, including counter-based multi-block regressions that also compare execution results; owning-crate clippy and formatting. A profiled large compile previously spent 26.7 seconds in 338 repeated scans. Change-Id: Ided1728ddf74ef8e3fb871971bb00af112418892
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
Array calls such as values.sum and values.product() now evaluate for one-dimensional fixed integral arrays, dynamic arrays, queues and associative arrays. Preserve element width, signedness, packed query shape and X/Z propagation (IEEE 1800-2023 7.12.3), including overflow before widening to an assignment destination. Accept ordinary and discarded calls. Empty inputs use operation identities: product returns one, bitwise AND returns all bits set at the element width, and sum/OR/XOR return zero. Opt into the legacy all-zero behavior with SimulatorBuilder::legacy_empty_reductions(true) or AnalysisOptions::legacy_empty_reductions. The setting is local to each compilation and is encoded in the generated IR/native image. Nonempty results are identical in both modes. The current TypeScript API has no direct SV source compilation entry, so this option is exposed through Rust/frontend APIs. Use balanced expression trees for fixed arrays and heap traversal loops for dynamic containers. Add six shared cases across native, parallel native, Cranelift, parallel Cranelift and WASM. API regressions alternate identical source between default/legacy/default modes in two/four-state execution, exercise mixed hierarchies and round-trip both modes through native images. with expressions, iterator arguments, multidimensional unpacked receivers, nonintegral elements and array expression receivers remain unsupported. Five unmodified upstream reduction simulation cases pass the official sv-tests runner in both state modes at revision db159ad8e9cbbd62036569d240153f753258f640. Update exactly those ten expectations from fail to pass; preserve the other 3,290 rows. These upstream cases are nonempty and do not validate empty-input semantics. This was a focused run, not a full-corpus rerun. Rebase integration preserves the merged #2178 optional-parentheses support, packed pop-result queries, discarded container calls and existing shared cases. Validation: - Common SV suite: 5,712 passed, 20 existing ignored. Latest container suite: 141 passed, including the six shared cases and compatibility/image API tests. - Analyzer/frontend/simulator units: 839 / 8 / 234 passed, with 3 existing analyzer ignores. Default-feature simulator units: 151 passed. - Debug NAPI build and JS integration: 435 passed across 16 files. - Official upstream reduction cases: 10 simulation passes using the release driver; expectation/runner aggregate tests: 5 passed. - Affected-crate all-targets Clippy with -D warnings, cargo fmt --all -- --check and git diff --check passed. - The full SV suite, affected units and Clippy above were rerun after rebasing onto master with #2178 and the #2171 analyzer optimization. - The optional no-host check (--no-default-features --features systemverilog) fails in the unchanged SV parameter diagnostic: CodegenError::message is host-runtime-only. Host builds and standalone frontend units pass. Independent checks retain their assertions and exclusions: - Verilator 5.052: 1 pass, 2 mismatches, 1 compile error, 2 four-state adapter unsupported. Differences include the default empty identities (its empty product/AND return zero), fixed-array arithmetic widened by assignment or comparison context, and parser rejection of void-cast reduction calls. - Icarus 13.0: all six have compile errors; no independent passes claimed. - xezim 0.11.3: all six compile, 1 passes and 5 mismatch. Standalone probes reproduce negative-range fixed-array reduction, X/Z and packed query differences; its empty product is one but empty AND is zero. BREAKING CHANGE: ContainerOp adds seven reduction variants. AnalysisOptions and SimulatorOptions add a legacy_empty_reductions field; downstream exhaustive matches and full struct literals must account for these additions. Latest master synchronization preserves both reduction and logical-implication conformance notes. Revalidated 141 container tests including compatibility and native-image regressions, 839 analyzer tests (three existing ignores), affected-crate Clippy and formatting. Shared cases and external adapters are unchanged by this synchronization. Change-Id: Iec0f1a95026120fdb95b50e2eccea9cfc86bed6e
Evaluate both operands exactly once and preserve four-state truth values. Six generated sv-tests cases now pass in both state modes. Validation: full sv-tests, operator and analyzer tests, Icarus and Verilator focused cases, formatting and analyzer Clippy. Verilator 5.052 evaluates one operand twice; retain a reviewed exclusion with a standalone reproduction. Rebased onto master after #2201 merged and removed its obsolete dependency marker. Revalidated 305 operator tests across enabled backends, 839 analyzer tests (three existing ignores), analyzer Clippy, workspace check, title/queue policy tests and formatting. The existing zstd/zstd-safe advisory failures are unrelated to this PR and remain unresolved. Change-Id: I918a75f01dff54bb45806788937909ae12075edb
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.
Note
This is a merge queue draft opened by Mergify. Nobody needs to act on it.
Mergify opened it for batch good-bayonne-jus9x6 of the
changesqueue, to test #2230 before it merges intomaster. Pushing to this branch or closing this pull request removes #2230 from the queue.What this draft tests
Mergify checks that #2230 still passes CI once combined with everything queued ahead of it. CI runs on this draft's code, built in this order:
masterate364e4d8ee95d7The check is speculative: it assumes the pull requests ahead will merge, so it starts without waiting for them.
🎉 Where it stands: checks passed
CI passed on this draft.
Follow the
changesqueue in the dashboardWhat happens next
masterand closes this draft.Tip
A red check is not necessarily caused by this batch. These checks run on a tip that also carries the commits of the 3 pull requests ahead, so a failure here can come from them as much as from #2230. See only this batch's changes.
Queued ahead of this batch
These pull requests entered the queue before this batch and are not part of it.
Metadata for CI tooling, read by
mergify ci1 scope
coreRequired conditions of queue rule
changesfor mergecheck-success = Conventional Commit titlecheck-success = Queue validationdepends-on = celox-sim/celox#2229[⛓️ perf(sir-opt): verify coupled rewrites once per batch #2229]master]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-success = @github-actions/NAPI Build (Linux ARM64 GNU)check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)master]:check-success = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-skipped = @github-actions/NAPI Build (Windows)master]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-success = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-skipped = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titleRequired conditions to stay in the queue
-conflict-draft-head ~= ^(integration/|renovate/veryl-crates$|upgrade/veryl-|release-please--branches--master--components--celox$|master$)-head ~= ^renovate/-label = release:holddepends-on = celox-sim/celox#2229[⛓️ perf(sir-opt): verify coupled rewrites once per batch #2229]base ~= ^(master|develop)$base ~= ^stack/body ~= (?m)^Depends-On:head != release-please--branches--master--components--celoxlabel = merge-readymaster]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)check-success = @github-actions/NAPI Build (Linux ARM64 GNU)master]:check-skipped = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-success = @github-actions/NAPI Build (Windows)master]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-skipped = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-success = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titleQueue graph
The diagram is not laid out in queue order, so a node's position says nothing about when it merges.
graph LR 20d08d9ce109419780da26180ab8af4c["good-bayonne-jus9x6<br/>#2230<br/>scopes: core"] d53e52f52bc642faa9bdd53cb38e685f["high-salers-gy95xf<br/>#2243<br/>scopes: core"] 20d08d9ce109419780da26180ab8af4c --> d53e52f52bc642faa9bdd53cb38e685f style 20d08d9ce109419780da26180ab8af4c fill:#6366f1,color:#fff