Repository navigation
perf(sv): skip scope discovery for literal query operands - #1843
Merged
Conversation
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
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. |
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
Contributor
Merge Queue Status
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
|
This was referenced Oct 24, 2026
mergify
Bot
deleted the
stack/tignear/fix/sv-real-parameter-overrides/skip-scope-discovery-literal-query-operands--00f31b06
branch
October 24, 2026 05:14
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.
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:
five backends. Analyzer: 796 passed, 3 existing ignored; frontend:
5 passed; doctests: 2 passed.
and diff checks passed. Shared cases and external adapters are unchanged.
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.
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