refactor(recompiler): remove dead translation and emitter stubs #14708
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14708"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-11-01T17:13:56Z.
What
Removes 23 unconditionally throwing legacy entry points the progress scanner counts as unsupported: the free
Translate*Instructionfunctions (Scalar/Vector/Float/Integer/Compare/Convert/ControlFlow/Attribute/Dispatch/Memory, each withIrBuilderandTranslationContextoverloads), theTranslationContext::translateInstruction/DispatchInstructionmember overloads, and theSpirvModule-basedEmitAluValue/EmitControlFlowoverloads. Every removed symbol was verified caller-free — live dispatch goes throughTranslationContextandSpirvValueEmitContext. Also drops the 11 dead headers and their includes. Unsupported-throw count goes 148 to 125 (Translation 47 to 27, SpirvBackend 16 to 13).Tested
Windows 11, MinGW:
cmake --build build --target shader_recompiler_agc_driver— all 284 objects compile andlibshader_recompiler_agc_driver.alinks clean.tools/shader_scan.pyreports 125 throw sites.agc_driver_graphics_testspasses onmainand on this branch underANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation; neither log containswas not found but was requestedand the change adds noVUID-lines.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T17:20:35Z.
Review: COMMENTED
Reviewed — no blocking findings
The deleted overloads and headers have no in-repository callers, and the current context-based translation and emission paths remain intact.
What I ran
Reviewed head
09bba0fc798d4df178e920f753e44936d471013dagainst basef2d874c1fdccf781c0fa5d86619bb5dd8894b958; the merge preview is clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build.Results
Precheck table and raw output
Negative control
Not run: this is a deletion-only refactor, and a meaningful negative control requires compiling and testing the recompiler.
Findings
Blocking
None found in the reviewed diff.
Non-blocking
Approval is deferred while required hosted checks are queued. The precheck's test-quality helper could not run because it is absent from the detached PR snapshot. The author-reported Windows build, Vulkan tests and shader-scan counts were not independently reproduced;
tools/shader_scan.pyis absent from this workspace.Sources
Not verified
To get this to a good state
Let the queued CI checks finish. I will rerun the same no-build checks on any changed head and reassess when CI completes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T11:01:53Z.
Review: APPROVED
Re-checked — same head, approved
The full review found no blocking issue, and the hosted checks that were queued at review time have now completed successfully.
What I ran
Confirmed PR #14708 remains open at head
09bba0fc798d4df178e920f753e44936d471013d, based onf2d874c1fdccf781c0fa5d86619bb5dd8894b958. My full review of this exact head is here. This follow-up checked hosted CI; I did not run a local build or tests.Results
Hosted check output (unedited)
Findings
No blocking findings in the full review of this exact head.
Sources
Not verified
I did not run a local build, CTest, or console tests. The Linux, Windows, register-context, and write-watch test jobs were skipped by CI.