diff options
| author | bobcatchris <83428450+bobcatchris@users.noreply.github.com> | 2026-11-30 12:38:32 -0600 |
|---|---|---|
| committer | bobcatchris <83428450+bobcatchris@users.noreply.github.com> | 2026-11-30 12:38:32 -0600 |
| commit | f48d2db7f973d3136471e317b05c354c93802c92 (patch) | |
| tree | 40cb745f7cf152cf715b55557f2028393e1b9455 /runtime/test/queue_proxy_test.cpp | |
| parent | ad36782c6d54af6af343def1a86861d760de9e96 (diff) | |
d3d12: skip the lane-parking scan for programs with no lane save or restore, and walk register sets by word
`unspill` decodes the fields and the effects of every instruction to find scalars
parked in VGPR lanes, though most programs have no `v_writelane_b32` or
`v_readlane_b32`; it now returns at once for those. The scan itself is unchanged
for the rest (`unspill_scan`).
`members` (the register sets `rename` walks for every block) stepped through all
513 registers testing a bit each; it now takes the set bits a word at a time, and
`rename` sizes each block's live-out list once.
Measured on a full-archive `leonida translate` (mimalloc build, 16 threads, four
interleaved pairs against main): CPU 655.2 s -> 645.7 s (-1.5 %, three pairs of
four lower), wall unchanged within noise (median 50.0 s vs 49.9 s). The DXIL of
all 25 689 programs is identical to main's (blake3 of each, five runs).
New test: `unspill` leaves a list with no lane save or restore alone, and finds
the same parks as the scan for lists that have them; it fails if the early-out
skips a list that has one.
AI-assisted: Claude Sonnet 5.5
Co-authored-by: Cursor <cursoragent@cursor.com>
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions