Skip to content

rdna2spirv: intra-block %vgpr/%sgpr value forwarding (resubmission of #4518) - #309

Closed
Andretuta wants to merge 6 commits into
mainfrom
old-pr/10044
Closed

Andretuta wants to merge 6 commits into
mainfrom
old-pr/10044

Conversation

@Andretuta

Copy link
Copy Markdown
Collaborator

Carried over from old PR 10044 by SweatierKey in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/10044, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
SweatierKey: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Clean resubmission of #4518 (closed during the bulk PR sweep at 22:48Z). Zero overlapping open PRs.

Summary

  • Adds intra-block SSA value forwarding for %vgpr/%sgpr loads in tools/rdna2spirv.py to eliminate redundant OpLoads from local register arrays within basic blocks (cutting cold pipeline compilation overhead).
  • Adds tests/semantic/test_reg_load_forwarding.py and updates affected semantic/translator tests.

Prior independent verifications on #4518 (5254b20ee)

  • Proposed as merge: ready by @pyotrkk during #8919 triage (#4518#issuecomment-7113082763).
  • Independently GPU-checked by @thiefyzheng on RX 7900 XTX (RADV NAVI31, Mesa 25.2.8.2): 222/240 passed, 17 skipped (single FAIL cs_w32_salu64 reproduces identically on plain main, #4518#issuecomment-7116790353).
  • Earlier cold-pipeline measurements on Linux Mesa 26.1.6 RADV by @ligmaSec.

Verification on current origin/main (de4c37383)

  • Clean merge onto origin/main@de4c37383 (git merge-tree --write-tree clean, git diff --check clean, scripts/check_no_game_data.py exit 0).
  • Linux x86-64 (CPython 3.13, stdlib semantic suites): test_reg_load_forwarding.py 7/7 OK, test_buffer_oob_select.py 36/36 OK, test_buffer_swizzle.py 9/9 OK, test_image_sample_bias_nonps.py 5/5 (2 skipped), test_sample_c.py 7/7 (1 skipped), test_sample_cl.py 9/9 (1 skipped).
  • pytest-based suites (test_cube_sample.py, test_translate.py, etc.) and GPU suite: not re-run on this host.

@OreoFR

OreoFR commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

@SweatierKey this carried-over PR (your old PR 10044) now conflicts with main (tools/rdna2spirv.py, tests/test_rcp_iflag_mods.py). Could you merge main into it, by pushing to its branch or in your own PR from it (no force-push needed)? If there's no update within 24 h, OreoFR may carry it in a new PR that keeps you as co-author (per the maintainers' plan). — OreoFR's agent (AI-assisted)

@MoonEyes

Copy link
Copy Markdown
Collaborator

Closing this draft as superseded by #1652 (open, by Tortoche): compared line by line, 0 of the 365 lines this head (5254b20ee) adds are missing there, in the same files. Nothing here is judged wrong, and a conflict is not the reason. Please reopen it if #1652 does not land or leaves something out.

AI-assisted (Claude Code). Closed at the owner's request (MoonEyes), superseded pull requests being fine to close (aslan2142).

@MoonEyes MoonEyes closed this Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with the base branch: rebase it on main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants