Repository navigation
perf(runtime): snapshot only a group's own trigger addresses in the interpreter - #2018
Conversation
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. |
Merge Queue Status
This pull request spent 27 minutes 27 seconds in the queue, with no time running CI. ReasonPull request #2018 has been dequeued Queue conditions are not satisfied:
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Requeued — the merge queue status continues in this comment ↓. |
1ea32b4 to
dfc09d0
Compare
…nterpreter Closes #2015 Change-Id: I20ab707920a989f6babea59338a9ab0dd15d0b39
825400c to
8502b27
Compare
Merge Queue Status
This pull request spent 35 minutes 47 seconds in the queue, including 33 minutes 5 seconds running CI. Required conditions to merge
|
Closes #2015. Stacked on #2009, because both change the same
InterpBackendtrigger-address code. It will be retargeted to master once #2009 merges.Summary
The interpreter used to snapshot one shared list of trigger addresses for every group of a clock: eval/apply, eval-only and apply. For an eval/apply clock, that list included every combinational trigger address, so with
emit_triggerseachapply_ff_atandeval_only_ff_atread O(combinational trigger addresses) words. On C906 that is most of the interpreter's time.Each group now carries its own list (
UnitGroup, holding the prepared units and the trigger-bearing addresses they store):TriggerAddrs, no copy).This does not change behavior. A snapshot is read only by a trigger store that runs in the group, and a store whose address has no snapshot marks nothing. An address that no unit of a group stores was snapshotted and never read.
ClockTriggerAddrsandclock_trigger_addrsare removed.Tests
split_groups_snapshot_only_their_own_trigger_addresses(systemverilog): a testbench with a combinationally gated clock. Its processes make it use the split eval-only/apply groups. The test checks that the apply and eval-only groups hold no combinational trigger address. It then runs the design on the interpreter and on Cranelift and comparesq,gandseen(analways @(posedge gclk)counter, so the gated clock's trigger must fire) at 67 time points.cargo nextest run -p celox --features systemverilogunder the memory cap: 14636 passed, 0 failed, 313 skipped.This changes only the interpreter backend, so the native code that the b2 callgrind gate measures is unchanged, and I didn't run that gate.
Depends-On: #2009