mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 19:07:01 +02:00
shader: reject rejoining early-exit routes
This commit is contained in:
@@ -1803,7 +1803,8 @@ bool RouteOneSharedArm(Graph& graph, uint32_t original_block_count, uint32_t out
|
||||
|
||||
const auto continuation = graph.FindNearestCommonPostDominator(shared, body);
|
||||
const auto* continuation_block = graph.FindBlock(continuation);
|
||||
if (continuation_block == nullptr || continuation == other) {
|
||||
if (continuation_block == nullptr || continuation == other ||
|
||||
CanReachBefore(graph, other, continuation, UINT32_MAX)) {
|
||||
continue;
|
||||
}
|
||||
std::vector<uint32_t> outer_predecessors;
|
||||
|
||||
Reference in New Issue
Block a user