[PR #1431] [CLOSED] recompiler: add use tracking #2108

Closed
opened 2026-02-27 21:15:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1431
Author: @baggins183
Created: 10/22/2024
Status: Closed

Base: mainHead: users


📝 Commits (10+)

  • 6036cc8 add use tracking for Insts
  • c4d47ff fix undouse
  • 7001cfa broken. add some asserts
  • ccf4701 fix SSA pass. Keep Identity (still useful). Split into 2 ReplaceUses variants
  • 50e8998 remove CMakeLists change
  • e96afcd cleanup
  • 3c6d335 think this user iterator will work
  • ed3e121 Store users as list. Use iterator facade for uses
  • 5aca498 fix clearargs
  • 2da3d40 update boost

📊 Changes

7 files changed (+207 additions, -45 deletions)

View changed files

📝 externals/ext-boost (+1 -1)
📝 src/shader_recompiler/ir/microinstruction.cpp (+79 -18)
📝 src/shader_recompiler/ir/passes/constant_propagation_pass.cpp (+18 -17)
📝 src/shader_recompiler/ir/passes/lower_shared_mem_to_registers.cpp (+1 -1)
📝 src/shader_recompiler/ir/passes/resource_tracking_pass.cpp (+1 -1)
📝 src/shader_recompiler/ir/value.h (+106 -7)
📝 src/shader_recompiler/recompiler.cpp (+1 -0)

📄 Description

Add use tracking for instructions

Still want to add iterator adaptor for (distinct) users in addition to uses.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/1431 **Author:** [@baggins183](https://github.com/baggins183) **Created:** 10/22/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `users` --- ### 📝 Commits (10+) - [`6036cc8`](https://github.com/shadps4-emu/shadPS4/commit/6036cc8f79de5fe783da84880d10ec62502cfa83) add use tracking for Insts - [`c4d47ff`](https://github.com/shadps4-emu/shadPS4/commit/c4d47ff48d408ef8d3e1acc8486c00c76633b83c) fix undouse - [`7001cfa`](https://github.com/shadps4-emu/shadPS4/commit/7001cfa3477831df680617750b6e5e37c363d102) broken. add some asserts - [`ccf4701`](https://github.com/shadps4-emu/shadPS4/commit/ccf47015469fb018ca95ce499284b9bbbe994c66) fix SSA pass. Keep Identity (still useful). Split into 2 ReplaceUses variants - [`50e8998`](https://github.com/shadps4-emu/shadPS4/commit/50e8998c2b517982c61759f90b40f92ca2e42519) remove CMakeLists change - [`e96afcd`](https://github.com/shadps4-emu/shadPS4/commit/e96afcd1cbcde504c5f61574b00be358dd57a6c5) cleanup - [`3c6d335`](https://github.com/shadps4-emu/shadPS4/commit/3c6d335be427eaec0ff577b2958783e8f40cdbe4) think this user iterator will work - [`ed3e121`](https://github.com/shadps4-emu/shadPS4/commit/ed3e12176fd003d9330720788429c3eb9f2e25bf) Store users as list. Use iterator facade for uses - [`5aca498`](https://github.com/shadps4-emu/shadPS4/commit/5aca498a14ce66adcfe56042b105c9a1365203d7) fix clearargs - [`2da3d40`](https://github.com/shadps4-emu/shadPS4/commit/2da3d4055df54abb434d770f70042aaa6771a6f9) update boost ### 📊 Changes **7 files changed** (+207 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `externals/ext-boost` (+1 -1) 📝 `src/shader_recompiler/ir/microinstruction.cpp` (+79 -18) 📝 `src/shader_recompiler/ir/passes/constant_propagation_pass.cpp` (+18 -17) 📝 `src/shader_recompiler/ir/passes/lower_shared_mem_to_registers.cpp` (+1 -1) 📝 `src/shader_recompiler/ir/passes/resource_tracking_pass.cpp` (+1 -1) 📝 `src/shader_recompiler/ir/value.h` (+106 -7) 📝 `src/shader_recompiler/recompiler.cpp` (+1 -0) </details> ### 📄 Description Add use tracking for instructions Still want to add iterator adaptor for (distinct) users in addition to uses. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:15:13 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2108
No description provided.