Repository navigation
fix(native): preserve array boundaries and store ordering in merged optimization - #1913
Merged
Conversation
Contributor
Author
|
This pull request is part of a Mergify stack:
|
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. |
tignear
force-pushed
the
stack/tignear/fix/taxi-cocotb-correctness/preserve-array-boundaries-store-ordering-merged--3a2eb46f
branch
from
October 24, 2026 18:03
1ec48bb to
679a004
Compare
Contributor
Author
Revision history
|
…ptimization Merged native optimization could drop one-hot LFSR state contributions when a padded unpacked scratch array was large, and store coalescing could move an earlier write past an overlapping overwrite. Preserve padded element boundaries at every array size and element width, and stop coalescing across overlapping writes and memory barriers while retaining disjoint-write optimization. Add shared regressions for function scratch arrays and partial overwrites, plus Native coverage of 58/65/129-bit elements in two/four-state modes at O0/O1/O2. Validation on master bd4fb45: - SIR optimizer: 468 tests and one doctest pass; one existing ignored test. - Full SV suite: 4,495 pass, 20 existing ignored, including Native widths 58/65/129 x two/four-state x O0/O1/O2. - Six storage/function consumer suites: 240 pass, six existing ignored. - Affected library/integration clippy checks (-D warnings), formatting and diff checks pass. - Both unchanged shared regressions were independently checked with Verilator and Icarus. Upstream evidence on base 48f908e: all 38 original Taxi LFSR configurations pass at O1/two-state, including the formerly incorrect scrambler and descrambler. A separate pre-existing 65-bit Wasm probe is outside this fix; the portable 58-bit regressions pass. Latest full-stack integration verification on master d34520d: - Full SV suite: 4,571 pass, 20 existing ignored. - Analyzer/frontend units: 802 pass, three existing ignored; two doctests pass. - Affected frontend/analyzer/Celox clippy checks (-D warnings), formatting and report-gate tests pass. CI follow-up validation: the false-loop suite passes all 25 tests. The reviewed disjoint-store coalescing snapshot is updated, and its fixed-point output is checked for all eight inputs; the snapshot test also passes independently on this stack member. Change-Id: I3a2eb46f622ccb63fe784ab98a9803a2858c14f7
tignear
force-pushed
the
stack/tignear/fix/taxi-cocotb-correctness/preserve-array-boundaries-store-ordering-merged--3a2eb46f
branch
from
October 24, 2026 19:09
679a004 to
1344a30
Compare
Contributor
Merge Queue Status
This pull request spent 1 hour 6 minutes 45 seconds in the queue, including 33 minutes 28 seconds running CI. Required conditions to merge
|
mergify
Bot
deleted the
stack/tignear/fix/taxi-cocotb-correctness/preserve-array-boundaries-store-ordering-merged--3a2eb46f
branch
October 24, 2026 21:36
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.
Merged native optimization could drop one-hot LFSR state contributions when a padded unpacked scratch array was large, and store coalescing could move an earlier write past an overlapping overwrite. Preserve padded element boundaries at every array size and element width, and stop coalescing across overlapping writes and memory barriers while retaining disjoint-write optimization.
Add shared regressions for function scratch arrays and partial overwrites, plus Native coverage of 58/65/129-bit elements in two/four-state modes at O0/O1/O2.
Validation on master bd4fb45:
Upstream evidence on base 48f908e: all 38 original Taxi LFSR configurations pass at O1/two-state, including the formerly incorrect scrambler and descrambler. A separate pre-existing 65-bit Wasm probe is outside this fix; the portable 58-bit regressions pass.
Latest full-stack integration verification on master d34520d:
CI follow-up validation: the false-loop suite passes all 25 tests. The reviewed disjoint-store coalescing snapshot is updated, and its fixed-point output is checked for all eight inputs; the snapshot test also passes independently on this stack member.