Skip to content

perf(sir-opt): verify coupled rewrites once per batch - #2229

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/perf/taxi-memory-runtime/verify-coupled-rewrites-once-per-batch--ded1728d
Oct 27, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/perf/taxi-memory-runtime/verify-coupled-rewrites-once-per-batch--ded1728d

Conversation

@tignear

@tignear tignear commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

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.

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
@tignear

tignear commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 perf(sir-opt): verify coupled rewrites once per batch #2229 👈
2 perf(sv): avoid copying published discovery prefixes #2230
3 refactor(native): support state-aware outlined kernel calls #2231
4 perf(native): share large comb kernels and bound compilation memory #2232
5 fix(vpi): expose interface parameters and lexical generate scopes #2233
6 perf(settle): bound estimated partitions and preserve sparse updates #2234
7 perf(sv): evaluate stateless constant functions once #2235

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-27T05:31:25.743278Z 5a92951 PR opened
ℹ️ 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 27, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 27, 2026
@mergify

mergify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into master as 07ec9d9 at 07:20 UTC

1 h 15 min in the queue, 54 min of it CI.

So far

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

Times in UTC · dashboard · how the merge queue works

@mergify
mergify Bot merged commit 07ec9d9 into master Oct 27, 2026
23 checks passed
@mergify
mergify Bot deleted the stack/tignear/perf/taxi-memory-runtime/verify-coupled-rewrites-once-per-batch--ded1728d branch October 27, 2026 07:20
@mergify mergify Bot removed the queued Mergify queue entry label Oct 27, 2026
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
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