Skip to content

perf(sv): skip scope discovery for literal query operands - #1843

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-real-parameter-overrides/skip-scope-discovery-literal-query-operands--00f31b06
Oct 24, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-real-parameter-overrides/skip-scope-discovery-literal-query-operands--00f31b06

Conversation

@tignear

@tignear tignear commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Preliminary typing of each literal array-pattern element rediscovered all
visible declarations. Publishing intermediate dimension snapshots repeatedly
copied and dropped unrelated expression trees, causing Taxi frontend runs
to exceed their 120-second limit.

Reuse the existing query-context projection for literals, including grouped
literals, before scope types are complete. Literals do not require lexical
name resolution; other operands retain the existing discovery path. Add an
owning-crate regression comparing literal query results against forced
discovery and asserting that the shortcut performs no declaration discovery.

Validation:

  • Full SystemVerilog suite: 4,366 passed, 20 existing ignored, across all
    five backends. Analyzer: 796 passed, 3 existing ignored; frontend:
    5 passed; doctests: 2 passed.
  • Clippy for affected crates/all targets with -D warnings, formatting,
    and diff checks passed. Shared cases and external adapters are unchanged.
  • Replayed the same 25 Taxi configurations using original RTL/parameters,
    release frontend binaries, two workers and 120-second limits. Timeouts
    decrease from 17 to zero; all 25 reach existing unpacked-parameter
    forwarding errors: 18 GT_TX_DIFFCTRL and 7 STAT_PREFIX_STR. Elapsed times
    are 2.142-21.296 seconds (median 10.245). These are frontend error results,
    not full FPGA-core or cocotb test passes. All 188 resolved SV sources
    match the earlier upstream hashes.
  • Synthetic source-to-scheduling probe with 256 declarations and 256 literal
    array elements: baseline completed samples take 38.929 and 42.647 seconds
    (a third times out at 60 seconds); patched samples take 0.038-0.042 seconds.
    Three repetitions alternate old/new order on a shared machine; these
    measurements do not establish a universal speedup or linear complexity.

This change builds on real-valued parameter overrides from #1839. Remaining
unpacked-array parameter forwarding errors are separate follow-up work.

Depends-On: #1839

Preliminary typing of each literal array-pattern element rediscovered all
visible declarations. Publishing intermediate dimension snapshots repeatedly
copied and dropped unrelated expression trees, causing Taxi frontend runs
to exceed their 120-second limit.

Reuse the existing query-context projection for literals, including grouped
literals, before scope types are complete. Literals do not require lexical
name resolution; other operands retain the existing discovery path. Add an
owning-crate regression comparing literal query results against forced
discovery and asserting that the shortcut performs no declaration discovery.

Validation:
- Full SystemVerilog suite: 4,366 passed, 20 existing ignored, across all
  five backends. Analyzer: 796 passed, 3 existing ignored; frontend:
  5 passed; doctests: 2 passed.
- Clippy for affected crates/all targets with -D warnings, formatting,
  and diff checks passed. Shared cases and external adapters are unchanged.
- Replayed the same 25 Taxi configurations using original RTL/parameters,
  release frontend binaries, two workers and 120-second limits. Timeouts
  decrease from 17 to zero; all 25 reach existing unpacked-parameter
  forwarding errors: 18 GT_TX_DIFFCTRL and 7 STAT_PREFIX_STR. Elapsed times
  are 2.142-21.296 seconds (median 10.245). These are frontend error results,
  not full FPGA-core or cocotb test passes. All 188 resolved SV sources
  match the earlier upstream hashes.
- Synthetic source-to-scheduling probe with 256 declarations and 256 literal
  array elements: baseline completed samples take 38.929 and 42.647 seconds
  (a third times out at 60 seconds); patched samples take 0.038-0.042 seconds.
  Three repetitions alternate old/new order on a shared machine; these
  measurements do not establish a universal speedup or linear complexity.

This change builds on real-valued parameter overrides from #1839. Remaining
unpacked-array parameter forwarding errors are separate follow-up work.

Change-Id: I00f31b062932d07ebdbe89b7fc3a7080e2aa2308
@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(sv): accept real-valued module parameter overrides #1839
2 perf(sv): skip scope discovery for literal query operands #1843 👈

@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 ⚠️ Failed 2026-10-24T02:46:52.613797Z
We couldn’t complete this review. Comment @codex review to try again.
effa03c 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 24, 2026
Base automatically changed from stack/tignear/fix/sv-real-parameter-overrides/accept-real-valued-module-param-overrides--d2cf14dd to master October 24, 2026 03:44
@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

  • ✅ Entered queue — 2026-10-24 03:47 UTC · Rule: changes · triggered by rule Queue explicitly requested merges
  • ✅ Checks passed · on draft merge queue: checking #1843 on master (13c774b) #1848
  • ✅ Merged — 2026-10-24 05:14 UTC · at 6001a3a9277b2cf48041d0de12b9c3e391ca45d7 · merge

This pull request spent 1 hour 26 minutes 45 seconds in the queue, including 1 hour 18 minutes 53 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#1839 [⛓️ fix(sv): accept real-valued module parameter overrides #1839]
  • 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 6001a3a into master Oct 24, 2026
31 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/sv-real-parameter-overrides/skip-scope-discovery-literal-query-operands--00f31b06 branch October 24, 2026 05:14
@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