Repository navigation
merge queue: checking #1869 + #1867 + #1887 together on master (090052d) - #1904
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
Add an opt-in shared executor with runtime corpus loading while preserving existing libtest registrations and nextest scheduling. Avoid Rust rebuilds for vtest body edits and retain the embedded in-process path. Change-Id: I782a196b4d4b952a7c5122984f2f9785cc61d153
Prepare the shared executor once for full and scoped Celox runs, fail when setup is missing, and warm both Cargo profiles under a matching cache key. Change-Id: I3bc134b06e3bf4fce8f1ed2e8a36ce7e0a6f629b
Change-Id: I28a4e411f6de79c7e30511682cd78111ff7f9490
BitExtractPeephole rewrote `(load >> k) & mask` as a mask-width load and retyped the And's destination to the mask width. Its users still expected the And's own width, e.g. `((a >> 4) & 15) == 32'd9` compared a 4-bit register with a 32-bit one. Cranelift tolerated the ill-typed SIR; the native merged-chain verifier rejected it at O1/O2 (#1854). Keep the destination type: load the field into a fresh register and zero-extend it with a Concat when the mask is narrower than the result, and load only the result width when the mask is wider. Fixes #1854 Change-Id: Icc91ce47ea0358c2f3eb597eaf151257a7c536d7
An edge process that writes an unpacked array by a nonblocking assignment at a run-time element seeded the whole array into its next state and committed all of it back on every edge. Each edge cost O(array size), and the generated code and compile time grew with the array (#1855). Such an array now uses the sparse next-state protocol that shared edge memories (and Veryl's dynamic writes) already use: element stores mark dirty 64-bit chunks, and the commit copies only those. Precondition, decided in `edge_only_memories()` (lowering.rs): - all local drivers of the array are edge processes of its module, and - the process writes it only by nonblocking constant-range or element writes, at least one at a run-time element (no blocking, whole-array or read-modify-write assignment). Every other array keeps the full next state. The function's doc comment is the hook for writers outside the module (hierarchical references, #1856). A write by another process between the evaluation and the NBA region (e.g. a `#0` resumption of an `initial`) is clobbered by the commit. This is pre-existing for every edge-process target, not only arrays, and is tracked and fixed separately in #1864. This change only narrows it: the sparse commit rewrites the dirty chunks, where the old one rewrote the whole array. Performance (100,000 cycles, `celox run --two-state --unlimited --backend cranelift`, release build, user time, `taskset -c 8-11`): | b3_mem_sweep | master | this | |---|---:|---:| | 2^10 | 0.12 s | 0.07 s | | 2^12 | 0.20 s | 0.07 s | | 2^14 | 0.64 s | 0.07 s | | 2^16 | 4.26 s | 0.09 s | | 2^22 (heliodor-dev) | 2-cycle startup alone 86.8 s user, 3.7 GB | full run 0.50 s, 125 MB | | 2^22 four-state (heliodor-dev) | - | full run 0.44 s | Startup of the 2-cycle variants (heliodor-dev): 2^16 0.88 s -> 0.01 s user; 2^22 110 s wall / 3.7 GB -> 0.36 s / 125 MB. Compile time and memory had the same cause. Unaffected workloads (callgrind, release): b2_vm_dispatch_bit.sv generates identical JIT code; whole-program 44.51 G -> 44.57 G instructions (+0.12%), all in compile-time functions this change does not touch, with identical call counts (e.g. `DriverScan::body` 56,773,692 calls in both). A Veryl 64K-word dynamic-index memory workload: identical JIT code, 188.40 M -> 188.80 M (+0.2%, about 4 host instructions per cycle in `testbench::clock_periods` and two runtime-event helpers this change does not touch). Both are code-layout differences of the LTO build. Validation: - `cargo test -p celox --features systemverilog --test systemverilog`: 4372 passed. - New shared case `procedural::nonblocking_runtime_element_writes_apply_in_order` (cranelift, native, wasm, parallel variants), passes on Verilator 5.052 and Icarus 13.0 (`verify-sv-verilator`, `verify-sv-icarus`). - New IR test `nonblocking_runtime_element_writes_use_sparse_next_state` (sparse for NBA element writes; full next state with a blocking or whole-array write). - A semantics stress design (multiple NBAs to one element, reads of old values, part-select merge, constant elements, X index) gives identical results to master on cranelift, interpreter, native O0 and wasm, two- and four-state; four-state matches xezim. - `cargo clippy -p celox-frontend-sv -p celox --features celox/systemverilog --tests`, `cargo fmt --check`. Closes #1855 Change-Id: I04824191d94b708b96866eab3e40f39eea515417
This was referenced Oct 24, 2026
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 genial-poilane-dkhvvp of the
changesqueue, to test #1869, #1867 and #1887 before they merge intomaster. Pushing to this branch or closing this pull request removes them from the queue.What this draft tests
Mergify checks that #1869, #1867 and #1887 still pass CI on top of
master. CI runs on this draft's code, built in this order:masterat090052d🎉 Where it stands: checks passed
CI passed on this draft.
Follow the
changesqueue in the dashboardWhat happens next
masterand closes this draft.Metadata for CI tooling, read by
mergify ci1 scope
coreRequired conditions of queue rule
changesfor mergecheck-success = Conventional Commit titlecheck-success = Queue validationmaster]: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:holdbase ~= ^(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 f07d81bcbe714d46a142eaf20891fe1f["genial-poilane-dkhvvp<br/>#1869 + #1867 + #1887<br/>scopes: core"] 27b0b0dbe80545e2bfa617324695018c["suited-radis-4viw6k<br/>#1888<br/>scopes: core"] 4cf6fd4378e544bcb922d420445e1092["general-brandade-9x6t89<br/>#1884 + #1838 + #1847<br/>scopes: core"] f07d81bcbe714d46a142eaf20891fe1f --> 27b0b0dbe80545e2bfa617324695018c 27b0b0dbe80545e2bfa617324695018c --> 4cf6fd4378e544bcb922d420445e1092 style f07d81bcbe714d46a142eaf20891fe1f fill:#6366f1,color:#fff