[PR #2667] [MERGED] shader_recompiler: Improve divergence handling and readlane elimintation #2898

Closed
opened 2026-02-27 22:01:41 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2667
Author: @raphaelthegreat
Created: 3/22/2025
Status: Merged
Merged: 3/22/2025
Merged by: @raphaelthegreat

Base: mainHead: lane-cfg-improve


📝 Commits (5)

  • 5647dc3 control_flow_graph: Improve divergence handling
  • ad63a6f recompiler: Simplify optimization passes
  • 8beb54f ir_passes: Add new readlane elimination pass
  • 1ae9b74 clang format
  • 2c2333c control_flow_graph: Remove debug code

📊 Changes

9 files changed (+210 additions, -138 deletions)

View changed files

📝 CMakeLists.txt (+1 -1)
📝 src/shader_recompiler/frontend/control_flow_graph.cpp (+82 -67)
📝 src/shader_recompiler/frontend/control_flow_graph.h (+1 -1)
📝 src/shader_recompiler/ir/passes/constant_propagation_pass.cpp (+0 -50)
📝 src/shader_recompiler/ir/passes/hull_shader_transform.cpp (+4 -0)
📝 src/shader_recompiler/ir/passes/ir_passes.h (+2 -2)
src/shader_recompiler/ir/passes/readlane_elimination_pass.cpp (+115 -0)
📝 src/shader_recompiler/ir/passes/ring_access_elimination.cpp (+2 -3)
📝 src/shader_recompiler/recompiler.cpp (+3 -14)

📄 Description

Resolves a bunch of issues I found, needs a lot of testing for regressions


🔄 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/2667 **Author:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Created:** 3/22/2025 **Status:** ✅ Merged **Merged:** 3/22/2025 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `lane-cfg-improve` --- ### 📝 Commits (5) - [`5647dc3`](https://github.com/shadps4-emu/shadPS4/commit/5647dc3d177c7d1386a2c5c0f08e9d8a0b5d323a) control_flow_graph: Improve divergence handling - [`ad63a6f`](https://github.com/shadps4-emu/shadPS4/commit/ad63a6f1a9a8a4723171536cf31f70bacb7dbdae) recompiler: Simplify optimization passes - [`8beb54f`](https://github.com/shadps4-emu/shadPS4/commit/8beb54f8d5ce81a9cbdedc15c973d4b024a1e1e1) ir_passes: Add new readlane elimination pass - [`1ae9b74`](https://github.com/shadps4-emu/shadPS4/commit/1ae9b74800b2d5c75dbd6de9adb8b0d8f44092d5) clang format - [`2c2333c`](https://github.com/shadps4-emu/shadPS4/commit/2c2333c9216f26e9f7f51b39fb2c88fb7745abb4) control_flow_graph: Remove debug code ### 📊 Changes **9 files changed** (+210 additions, -138 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+1 -1) 📝 `src/shader_recompiler/frontend/control_flow_graph.cpp` (+82 -67) 📝 `src/shader_recompiler/frontend/control_flow_graph.h` (+1 -1) 📝 `src/shader_recompiler/ir/passes/constant_propagation_pass.cpp` (+0 -50) 📝 `src/shader_recompiler/ir/passes/hull_shader_transform.cpp` (+4 -0) 📝 `src/shader_recompiler/ir/passes/ir_passes.h` (+2 -2) ➕ `src/shader_recompiler/ir/passes/readlane_elimination_pass.cpp` (+115 -0) 📝 `src/shader_recompiler/ir/passes/ring_access_elimination.cpp` (+2 -3) 📝 `src/shader_recompiler/recompiler.cpp` (+3 -14) </details> ### 📄 Description Resolves a bunch of issues I found, needs a lot of testing for regressions --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:01:41 +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#2898
No description provided.