Skip to content

fix(native): preserve array boundaries and store ordering in merged optimization - #1913

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/taxi-cocotb-correctness/preserve-array-boundaries-store-ordering-merged--3a2eb46f
Oct 24, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/taxi-cocotb-correctness/preserve-array-boundaries-store-ordering-merged--3a2eb46f

Conversation

@tignear

@tignear tignear commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

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.

@tignear

tignear commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 fix(native): preserve array boundaries and store ordering in merged optimization #1913 👈
2 fix(sv): forward packed pattern parameters as integral values #1914
3 fix(sv): accept undriven nets with high impedance defaults #1915

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T19:11:29.317000Z 1344a30 New commits
ℹ️ 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.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 24, 2026
@tignear
tignear force-pushed the stack/tignear/fix/taxi-cocotb-correctness/preserve-array-boundaries-store-ordering-merged--3a2eb46f branch from 1ec48bb to 679a004 Compare October 24, 2026 18:03
@tignear

tignear commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 1ec48bb 2026-10-24 17:57 UTC
2 rebase 1ec48bb → 679a004 (rebase only) Rebase on current master d34520d at user request, including1907 moving compilation scaling checks to CodSpeed so ordinary CI no longer runs the expensive scaling cases. Preserve the existing PR id… 2026-10-24 17:57 UTC
3 content 679a004 → 1344a30 2026-10-24 19:05 UTC

…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
tignear force-pushed the stack/tignear/fix/taxi-cocotb-correctness/preserve-array-boundaries-store-ordering-merged--3a2eb46f branch from 679a004 to 1344a30 Compare October 24, 2026 19:09
@mergify mergify Bot added the queued Mergify queue entry label Oct 24, 2026
@mergify

mergify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
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
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • 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)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify
mergify Bot merged commit e7c99c0 into master Oct 24, 2026
29 of 30 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/taxi-cocotb-correctness/preserve-array-boundaries-store-ordering-merged--3a2eb46f branch October 24, 2026 21:36
@mergify mergify Bot removed the queued Mergify queue entry label Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant